public enum MessageDeliveryMode extends Enum<MessageDeliveryMode>
Enum Constant and Description |
---|
NON_PERSISTENT
Non persistent.
|
PERSISTENT
Persistent.
|
Modifier and Type | Method and Description |
---|---|
static MessageDeliveryMode |
fromInt(int modeAsNumber) |
static int |
toInt(MessageDeliveryMode mode) |
static MessageDeliveryMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageDeliveryMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageDeliveryMode NON_PERSISTENT
public static final MessageDeliveryMode PERSISTENT
public static MessageDeliveryMode[] values()
for (MessageDeliveryMode c : MessageDeliveryMode.values()) System.out.println(c);
public static MessageDeliveryMode 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 int toInt(MessageDeliveryMode mode)
public static MessageDeliveryMode fromInt(int modeAsNumber)