Class AmqpMessageSource.AmqpAckCallback
java.lang.Object
org.springframework.integration.amqp.inbound.AmqpMessageSource.AmqpAckCallback
- All Implemented Interfaces:
AcknowledgmentCallback,SimpleAcknowledgment
- Enclosing class:
- AmqpMessageSource
public static class AmqpMessageSource.AmqpAckCallback extends Object implements AcknowledgmentCallback
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.integration.acks.AcknowledgmentCallback
AcknowledgmentCallback.Status -
Constructor Summary
Constructors Constructor Description AmqpAckCallback(AmqpMessageSource.AmqpAckInfo ackInfo) -
Method Summary
Modifier and Type Method Description voidacknowledge(AcknowledgmentCallback.Status status)Acknowledge the message.protected AmqpMessageSource.AmqpAckInfogetAckInfo()booleanisAcknowledged()Implementations must implement this to indicate when the ack has been processed by the user so that the framework can auto-ack if needed.booleanisAutoAck()Return true if this acknowledgment supports auto ack when it has not been already ack'd by the application.voidnoAutoAck()Disable auto acknowledgment by aSourcePollingChannelAdapterorMessageSourcePollingTemplate.protected voidsetAcknowledged(boolean acknowledged)StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.integration.acks.AcknowledgmentCallback
acknowledge
-
Constructor Details
-
Method Details
-
getAckInfo
-
setAcknowledged
protected void setAcknowledged(boolean acknowledged) -
isAcknowledged
public boolean isAcknowledged()Description copied from interface:AcknowledgmentCallbackImplementations must implement this to indicate when the ack has been processed by the user so that the framework can auto-ack if needed.- Specified by:
isAcknowledgedin interfaceAcknowledgmentCallback- Returns:
- true if the message is already acknowledged.
-
noAutoAck
public void noAutoAck()Description copied from interface:AcknowledgmentCallbackDisable auto acknowledgment by aSourcePollingChannelAdapterorMessageSourcePollingTemplate. Not all implementations support this - for example, the Kafka message source.- Specified by:
noAutoAckin interfaceAcknowledgmentCallback
-
isAutoAck
public boolean isAutoAck()Description copied from interface:AcknowledgmentCallbackReturn true if this acknowledgment supports auto ack when it has not been already ack'd by the application.- Specified by:
isAutoAckin interfaceAcknowledgmentCallback- Returns:
- true if auto ack is supported.
-
acknowledge
Description copied from interface:AcknowledgmentCallbackAcknowledge the message.- Specified by:
acknowledgein interfaceAcknowledgmentCallback- Parameters:
status- the status.
-
toString
-