public static class AmqpMessageSource.AmqpAckCallback extends Object implements AcknowledgmentCallback
AcknowledgmentCallback.Status
Constructor and Description |
---|
AmqpAckCallback(AmqpMessageSource.AmqpAckInfo ackInfo) |
Modifier and Type | Method and Description |
---|---|
void |
acknowledge(AcknowledgmentCallback.Status status)
Acknowledge the message.
|
protected AmqpMessageSource.AmqpAckInfo |
getAckInfo() |
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.
|
boolean |
isAutoAck()
Return true if this acknowledgment supports auto ack when it has not been
already ack'd by the application.
|
void |
noAutoAck()
Disable auto acknowledgment by a
SourcePollingChannelAdapter
or MessageSourcePollingTemplate . |
protected void |
setAcknowledged(boolean acknowledged) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
acknowledge
public AmqpAckCallback(AmqpMessageSource.AmqpAckInfo ackInfo)
protected AmqpMessageSource.AmqpAckInfo getAckInfo()
protected void setAcknowledged(boolean acknowledged)
public boolean isAcknowledged()
AcknowledgmentCallback
isAcknowledged
in interface AcknowledgmentCallback
public void noAutoAck()
AcknowledgmentCallback
SourcePollingChannelAdapter
or MessageSourcePollingTemplate
. Not all implementations support
this - for example, the Kafka message source.noAutoAck
in interface AcknowledgmentCallback
public boolean isAutoAck()
AcknowledgmentCallback
isAutoAck
in interface AcknowledgmentCallback
public void acknowledge(AcknowledgmentCallback.Status status)
AcknowledgmentCallback
acknowledge
in interface AcknowledgmentCallback
status
- the status.