public enum MessageDeliveryMode extends Enum<MessageDeliveryMode>
Enum Constant and Description |
---|
NON_PERSISTENT |
PERSISTENT |
Modifier and Type | Method and Description |
---|---|
static MessageDeliveryMode |
get(short value) |
short |
getValue() |
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 short getValue()
public static MessageDeliveryMode get(short value)
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.