public static class AmqpMessageSource.AmqpAckCallback extends java.lang.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) |
java.lang.String |
toString() |
public AmqpAckCallback(AmqpMessageSource.AmqpAckInfo ackInfo)
protected AmqpMessageSource.AmqpAckInfo getAckInfo()
protected void setAcknowledged(boolean acknowledged)
public boolean isAcknowledged()
AcknowledgmentCallbackisAcknowledged in interface AcknowledgmentCallbackpublic void noAutoAck()
AcknowledgmentCallbackSourcePollingChannelAdapter
or MessageSourcePollingTemplate. Not all implementations support
this - for example, the Kafka message source.noAutoAck in interface AcknowledgmentCallbackpublic boolean isAutoAck()
AcknowledgmentCallbackisAutoAck in interface AcknowledgmentCallbackpublic void acknowledge(AcknowledgmentCallback.Status status)
AcknowledgmentCallbackacknowledge in interface AcknowledgmentCallbackstatus - the status.public java.lang.String toString()
toString in class java.lang.Object