Interface AcknowledgementProcessingMessageSource<T>
- All Superinterfaces:
ConfigurableContainerComponent,MessageSource<T>
- All Known Subinterfaces:
PollingMessageSource<T>
- All Known Implementing Classes:
AbstractPollingMessageSource,AbstractSqsMessageSource,FifoSqsMessageSource,StandardSqsMessageSource
MessageSource specialization that enables processing acknowledgements for the
Message instances through an
AcknowledgementExecutor- Since:
- 3.0
- Author:
- Tomaz Fernandes
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetAcknowledgementProcessor(AcknowledgementProcessor<T> acknowledgementProcessor) Set theAcknowledgementProcessorinstance that will process the message instances and provide theAcknowledgementCallback.voidsetAcknowledgementResultCallback(AsyncAcknowledgementResultCallback<T> acknowledgementResultCallback) Set theAsyncAcknowledgementResultCallbackthat will be executed after messages are acknowledged, usually by aAcknowledgementExecutor.Methods inherited from interface io.awspring.cloud.sqs.listener.ConfigurableContainerComponent
configureMethods inherited from interface io.awspring.cloud.sqs.listener.source.MessageSource
setMessageSink
-
Method Details
-
setAcknowledgementProcessor
Set theAcknowledgementProcessorinstance that will process the message instances and provide theAcknowledgementCallback.- Parameters:
acknowledgementProcessor- the processor instance.
-
setAcknowledgementResultCallback
void setAcknowledgementResultCallback(AsyncAcknowledgementResultCallback<T> acknowledgementResultCallback) Set theAsyncAcknowledgementResultCallbackthat will be executed after messages are acknowledged, usually by aAcknowledgementExecutor.- Parameters:
acknowledgementResultCallback- the callback instance.
-