public enum MessageDeliveryMode extends java.lang.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(java.lang.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(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 int toInt(MessageDeliveryMode mode)
public static MessageDeliveryMode fromInt(int modeAsNumber)