Class AckUtils
java.lang.Object
org.springframework.integration.acks.AckUtils
Utility methods for acting on
AcknowledgmentCallback headers.- Since:
- 5.0.1
- Author:
- Gary Russell, Artem Bilan
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaccept(AcknowledgmentCallback ackCallback) ACCEPT the associated message if the callback is not null.static voidautoAck(AcknowledgmentCallback ackCallback) ACCEPT anAcknowledgmentCallbackif it's not null, supports auto ack and is not already ack'd.static voidautoNack(AcknowledgmentCallback ackCallback) REJECT anAcknowledgmentCallbackif it's not null, supports auto ack and is not already ack'd.static voidreject(AcknowledgmentCallback ackCallback) REJECT the associated message if the callback is not null.static voidrequeue(AcknowledgmentCallback ackCallback) REQUEUE the associated message if the callback is not null.
-
Method Details
-
autoAck
ACCEPT anAcknowledgmentCallbackif it's not null, supports auto ack and is not already ack'd.- Parameters:
ackCallback- the callback.
-
autoNack
REJECT anAcknowledgmentCallbackif it's not null, supports auto ack and is not already ack'd.- Parameters:
ackCallback- the callback.
-
accept
ACCEPT the associated message if the callback is not null.- Parameters:
ackCallback- the callback.
-
reject
REJECT the associated message if the callback is not null.- Parameters:
ackCallback- the callback.
-
requeue
REQUEUE the associated message if the callback is not null.- Parameters:
ackCallback- the callback.
-