public enum MessgeFailureReason extends java.lang.Enum<MessgeFailureReason>
Enum Constant | Description |
---|---|
Evicted |
Failed because it got evicted before delivery.
|
Expired |
Failed because it could not be delivered within expiration time.
|
Modifier and Type | Method | Description |
---|---|---|
static MessgeFailureReason |
forValue(int value) |
|
int |
getValue() |
Order is important in enums.By using getValue() method, each enum constant index can be found, just like array index.
|
static MessgeFailureReason |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static MessgeFailureReason[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessgeFailureReason Expired
public static final MessgeFailureReason Evicted
public static MessgeFailureReason[] values()
for (MessgeFailureReason c : MessgeFailureReason.values()) System.out.println(c);
public static MessgeFailureReason valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static MessgeFailureReason forValue(int value)
public int getValue()