Enum DisconnectReason
- java.lang.Object
-
- java.lang.Enum<DisconnectReason>
-
- org.apache.activemq.artemis.api.core.DisconnectReason
-
- All Implemented Interfaces:
Serializable
,Comparable<DisconnectReason>
public enum DisconnectReason extends Enum<DisconnectReason>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REDIRECT
REDIRECT_ON_CRITICAL_ERROR
SCALE_DOWN
SCALE_DOWN_ON_CRITICAL_ERROR
SHUT_DOWN
SHUT_DOWN_ON_CRITICAL_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
REDIRECT
public static final DisconnectReason REDIRECT
-
REDIRECT_ON_CRITICAL_ERROR
public static final DisconnectReason REDIRECT_ON_CRITICAL_ERROR
-
SCALE_DOWN
public static final DisconnectReason SCALE_DOWN
-
SCALE_DOWN_ON_CRITICAL_ERROR
public static final DisconnectReason SCALE_DOWN_ON_CRITICAL_ERROR
-
SHUT_DOWN
public static final DisconnectReason SHUT_DOWN
-
SHUT_DOWN_ON_CRITICAL_ERROR
public static final DisconnectReason SHUT_DOWN_ON_CRITICAL_ERROR
-
-
Method Detail
-
values
public static DisconnectReason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DisconnectReason c : DisconnectReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DisconnectReason valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getType
public byte getType()
-
isCriticalError
public boolean isCriticalError()
-
isRedirect
public boolean isRedirect()
-
isScaleDown
public boolean isScaleDown()
-
isShutDown
public boolean isShutDown()
-
getType
public static DisconnectReason getType(byte type)
-
-