public enum DisconnectReason extends Enum<DisconnectReason>
| Enum Constant and Description |
|---|
REDIRECT |
REDIRECT_ON_CRITICAL_ERROR |
SCALE_DOWN |
SCALE_DOWN_ON_CRITICAL_ERROR |
SHUT_DOWN |
SHUT_DOWN_ON_CRITICAL_ERROR |
| Modifier and Type | Method and Description |
|---|---|
byte |
getType() |
static DisconnectReason |
getType(byte type) |
boolean |
isCriticalError() |
boolean |
isRedirect() |
boolean |
isScaleDown() |
boolean |
isShutDown() |
static DisconnectReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DisconnectReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DisconnectReason REDIRECT
public static final DisconnectReason REDIRECT_ON_CRITICAL_ERROR
public static final DisconnectReason SCALE_DOWN
public static final DisconnectReason SCALE_DOWN_ON_CRITICAL_ERROR
public static final DisconnectReason SHUT_DOWN
public static final DisconnectReason SHUT_DOWN_ON_CRITICAL_ERROR
public static DisconnectReason[] values()
for (DisconnectReason c : DisconnectReason.values()) System.out.println(c);
public static DisconnectReason 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 byte getType()
public boolean isCriticalError()
public boolean isRedirect()
public boolean isScaleDown()
public boolean isShutDown()
public static DisconnectReason getType(byte type)
Copyright © 2022 The Apache Software Foundation. All rights reserved.