public enum BrokerShutdownStatus extends Enum<BrokerShutdownStatus>
ERROR - when the broker shutdown was started but did not complete successfully. Users may need to take corrective action to recover. 2. PENDING - when the broker is yet to be shut down. 3. IN_PROGRESS - when the broker is shutting down. 3. CANCELED - when a broker shutdown was canceled prior to initiation. 4. COMPLETED - when the broker has successfully been shut down. 5. UNKNOWN - clients will fall back to this status when they receive an unrecognized status value (since 7.0.0)| Enum Constant and Description |
|---|
CANCELED |
COMPLETED |
ERROR |
IN_PROGRESS |
PENDING |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static BrokerShutdownStatus | toEnum(String name) |
static BrokerShutdownStatus | valueOf(String name)Returns the enum constant of this type with the specified name. |
static BrokerShutdownStatus[] | values()Returns an array containing the constants of this enum type, in the order they are declared. |
public static final BrokerShutdownStatus ERROR
public static final BrokerShutdownStatus PENDING
public static final BrokerShutdownStatus IN_PROGRESS
public static final BrokerShutdownStatus CANCELED
public static final BrokerShutdownStatus COMPLETED
public static final BrokerShutdownStatus UNKNOWN
public static BrokerShutdownStatus[] values()
for (BrokerShutdownStatus c : BrokerShutdownStatus.values()) System.out.println(c);
public static BrokerShutdownStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static BrokerShutdownStatus toEnum(String name)