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 SummaryNested classes/interfaces inherited from interface org.springframework.integration.acks.AcknowledgmentCallbackAcknowledgmentCallback.Status
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAcknowledge the message.protected AmqpMessageSource.AmqpAckInfobooleanImplementations must implement this to indicate when the ack has been processed by the user so that the framework can auto-ack if needed.booleanReturn true if this acknowledgment supports auto ack when it has not been already ack'd by the application.voidDisable auto acknowledgment by aSourcePollingChannelAdapterorMessageSourcePollingTemplate.protected voidsetAcknowledged(boolean acknowledged) toString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.integration.acks.AcknowledgmentCallbackacknowledge
- 
Constructor Details- 
AmqpAckCallback
 
- 
- 
Method Details- 
getAckInfo
- 
setAcknowledgedprotected void setAcknowledged(boolean acknowledged) 
- 
isAcknowledgedpublic 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 interface- AcknowledgmentCallback
- Returns:
- true if the message is already acknowledged.
 
- 
noAutoAckpublic 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 interface- AcknowledgmentCallback
 
- 
isAutoAckpublic 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 interface- AcknowledgmentCallback
- Returns:
- true if auto ack is supported.
 
- 
acknowledgeDescription copied from interface:AcknowledgmentCallbackAcknowledge the message.- Specified by:
- acknowledgein interface- AcknowledgmentCallback
- Parameters:
- status- the status.
 
- 
toString
 
-