@FunctionalInterface public interface AcknowledgmentCallback
| Modifier and Type | Interface and Description |
|---|---|
static class |
AcknowledgmentCallback.Status |
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledge(AcknowledgmentCallback.Status status)
Acknowledge the message.
|
default boolean |
isAcknowledged()
Implementations must implement this to indicate when the ack has been
processed by the user so that the framework can auto-ack if needed.
|
default boolean |
isAutoAck()
Return true if this acknowledgment supports auto ack when it has not been
already ack'd by the application.
|
default void |
noAutoAck()
Disable auto acknowledgment by a
SourcePollingChannelAdapter
or MessageSourcePollingTemplate. |
void acknowledge(AcknowledgmentCallback.Status status)
status - the status.default boolean isAcknowledged()
default void noAutoAck()
SourcePollingChannelAdapter
or MessageSourcePollingTemplate. Not all implementations support
this - for example, the Kafka message source.default boolean isAutoAck()