public static enum AbstractMessageListenerContainer.AckMode extends java.lang.Enum<AbstractMessageListenerContainer.AckMode>
Enum Constant and Description |
---|
BATCH
Commit whatever has already been processed before the next poll.
|
COUNT
Commit pending updates after
ackCount has been
exceeded. |
COUNT_TIME
|
MANUAL
User takes responsibility for acks using an
AcknowledgingMessageListener . |
MANUAL_IMMEDIATE
User takes responsibility for acks using an
AcknowledgingMessageListener . |
RECORD
Commit after each record is processed by the listener.
|
TIME
Commit pending updates after
ackTime has elapsed. |
Modifier and Type | Method and Description |
---|---|
static AbstractMessageListenerContainer.AckMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AbstractMessageListenerContainer.AckMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractMessageListenerContainer.AckMode RECORD
public static final AbstractMessageListenerContainer.AckMode BATCH
public static final AbstractMessageListenerContainer.AckMode TIME
ackTime
has elapsed.public static final AbstractMessageListenerContainer.AckMode COUNT
ackCount
has been
exceeded.public static final AbstractMessageListenerContainer.AckMode COUNT_TIME
public static final AbstractMessageListenerContainer.AckMode MANUAL
AcknowledgingMessageListener
.public static final AbstractMessageListenerContainer.AckMode MANUAL_IMMEDIATE
AcknowledgingMessageListener
. The consumer
immediately processes the commit.public static AbstractMessageListenerContainer.AckMode[] values()
for (AbstractMessageListenerContainer.AckMode c : AbstractMessageListenerContainer.AckMode.values()) System.out.println(c);
public static AbstractMessageListenerContainer.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 null