| Enum Constant and Description |
|---|
AUTOMATIC
Consumes in automatic acknowledgement mode.
|
ON_CONFIRM
Consumes in manual acknowledgement mode.
|
ON_PUBLISH
Consumes in manual acknowledgement mode.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toValue() |
static AckMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AckMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AckMode ON_CONFIRM
This is the safest option that offers lowest throughput.
public static final AckMode ON_PUBLISH
This is a moderately safe safe option that does not handle downstream node failures.
public static AckMode[] values()
for (AckMode c : AckMode.values()) System.out.println(c);
public static AckMode 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 java.lang.String toValue()