public static enum Message.Reliability extends java.lang.Enum<Message.Reliability>
Enum Constant and Description |
---|
BEST_EFFORT
Message will be persisted, number of retries if sending was unsuccessful
is two times the base number of retries.
|
GUARANTEED_DELIVERY
Message will be persisted, number of retries is unlimited.
|
NO_GUARANTEE
Message will not be persisted, number of retries if sending was unsuccessful
is the base number of retries.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Returns reliability as int value.
|
static Message.Reliability |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Message.Reliability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Message.Reliability NO_GUARANTEE
public static final Message.Reliability BEST_EFFORT
public static final Message.Reliability GUARANTEED_DELIVERY
public static Message.Reliability[] values()
for (Message.Reliability c : Message.Reliability.values()) System.out.println(c);
public static Message.Reliability 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 int getValue()