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 void
accept
(@Nullable AcknowledgmentCallback ackCallback) ACCEPT the associated message if the callback is not null.static void
autoAck
(@Nullable AcknowledgmentCallback ackCallback) ACCEPT anAcknowledgmentCallback
if it's not null, supports auto ack and is not already ack'd.static void
autoNack
(@Nullable AcknowledgmentCallback ackCallback) REJECT anAcknowledgmentCallback
if it's not null, supports auto ack and is not already ack'd.static void
reject
(@Nullable AcknowledgmentCallback ackCallback) REJECT the associated message if the callback is not null.static void
requeue
(@Nullable AcknowledgmentCallback ackCallback) REQUEUE the associated message if the callback is not null.
-
Method Details
-
autoAck
ACCEPT anAcknowledgmentCallback
if it's not null, supports auto ack and is not already ack'd.- Parameters:
ackCallback
- the callback.
-
autoNack
REJECT anAcknowledgmentCallback
if 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.
-