public enum ControlledShutdownRequestReason extends Enum<ControlledShutdownRequestReason>
Enum Constant and Description |
---|
UNHEALTHY
The broker was shutdown because the
BrokerHealthManager detected
the broker was unhealthy |
UNKNOWN
For future-compatibility reasons, covers all reasons which are not described below
|
Modifier and Type | Field and Description |
---|---|
byte |
reasonCode |
Modifier and Type | Method and Description |
---|---|
static ControlledShutdownRequestReason |
toEnum(byte reasonCode) |
static ControlledShutdownRequestReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ControlledShutdownRequestReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ControlledShutdownRequestReason UNKNOWN
public static final ControlledShutdownRequestReason UNHEALTHY
BrokerHealthManager
detected
the broker was unhealthypublic static ControlledShutdownRequestReason[] values()
for (ControlledShutdownRequestReason c : ControlledShutdownRequestReason.values()) System.out.println(c);
public static ControlledShutdownRequestReason 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 ControlledShutdownRequestReason toEnum(byte reasonCode)