public enum AckMode extends Enum<AckMode>
Enum Constant and Description |
---|
AUTO
The framework acks the
PubsubMessage after it is
sent to the channel and processed successfully. |
AUTO_ACK
The framework acks the
PubsubMessage after it is
sent to the channel and processed successfully. |
MANUAL
The framework does not ack / nack the message.
|
Modifier and Type | Method and Description |
---|---|
static AckMode |
valueOf(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 MANUAL
AckReplyConsumer
is sent back to the user
for acking or nacking the PubsubMessage
.public static final AckMode AUTO
PubsubMessage
after it is
sent to the channel and processed successfully.
The framework nacks the PubsubMessage
when an exception
occurs while processing the message.
public static final AckMode AUTO_ACK
PubsubMessage
after it is
sent to the channel and processed successfully.
The framework does not immediately nack the message when the exception occurs, and allows the eventual redelivery to take effect.
public static AckMode[] values()
for (AckMode c : AckMode.values()) System.out.println(c);
public static AckMode 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 nullCopyright © 2020 Pivotal Software, Inc.. All rights reserved.