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 -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.integration.acks.AcknowledgmentCallback
acknowledge
-
Constructor Details
-
AmqpAckCallback
-
-
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
-