|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SettleMode>
com.caucho.message.SettleMode
public enum SettleMode
Selects when a message is considered delivered and can be considered settled and forgotten by the sender. The settle mode can range from fire-and-forget (ALWAYS), to exactly-once (ACKNOWLEDGE).
Enum Constant Summary | |
---|---|
ALWAYS
ALWAYS settles the message immediately without waiting for any confirmation. |
|
AT_LEAST_ONCE
AT_LEAST_ONCE settles the message with the receiver has returned an ack. |
|
EXACTLY_ONCE
EXACTLY_ONCE settles the message with the receiver has acknowledged the message, and the sender has acknowledge receipt of the ack (double ack.) |
Method Summary | |
---|---|
static SettleMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SettleMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SettleMode ALWAYS
public static final SettleMode AT_LEAST_ONCE
public static final SettleMode EXACTLY_ONCE
Method Detail |
---|
public static SettleMode[] values()
for (SettleMode c : SettleMode.values()) System.out.println(c);
public static SettleMode 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 name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |