Serializable
, Comparable<AQEnqueueOptions.DeliveryMode>
public static enum AQEnqueueOptions.DeliveryMode extends Enum<AQEnqueueOptions.DeliveryMode>
Enum Constant | Description |
---|---|
BUFFERED |
The message will be buffered (resides in memory in the server which is
faster but less reliable in case of a server crash).
|
PERSISTENT |
The message is enqueued in a persistent manner (default).
|
Modifier and Type | Method | Description |
---|---|---|
int |
getCode() |
Implementation detail (for internal use only).
|
static AQEnqueueOptions.DeliveryMode |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static AQEnqueueOptions.DeliveryMode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AQEnqueueOptions.DeliveryMode PERSISTENT
public static final AQEnqueueOptions.DeliveryMode BUFFERED
public static AQEnqueueOptions.DeliveryMode[] values()
for (AQEnqueueOptions.DeliveryMode c : AQEnqueueOptions.DeliveryMode.values()) System.out.println(c);
public static AQEnqueueOptions.DeliveryMode 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 final int getCode()