Interface AcknowledgementProcessor<T>
- All Superinterfaces:
ConfigurableContainerComponent,IdentifiableContainerComponent,Lifecycle,Phased,SmartLifecycle
- All Known Subinterfaces:
ExecutingAcknowledgementProcessor<T>
- All Known Implementing Classes:
AbstractOrderingAcknowledgementProcessor,BatchingAcknowledgementProcessor,ImmediateAcknowledgementProcessor
public interface AcknowledgementProcessor<T>
extends SmartLifecycle, IdentifiableContainerComponent, ConfigurableContainerComponent
Top-level interface for a component capable of processing acknowledgements. Provides the
getAcknowledgementCallback() method that allows offering messages to the processor.
The timing of the execution of the acknowledgements depends on many factors sucha as
ContainerOptions.getAcknowledgementInterval(), ContainerOptions.getAcknowledgementThreshold(),
ContainerOptions.getAcknowledgementOrdering().
The actual execution is usually handled by an AcknowledgementExecutor.- Since:
- 3.0
- Author:
- Tomaz Fernandes
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Method Summary
Modifier and TypeMethodDescriptionRetrieve an acknowledgement callback that can be used to offer messages to be acknowledged by this processor.Methods inherited from interface io.awspring.cloud.sqs.listener.ConfigurableContainerComponent
configureMethods inherited from interface io.awspring.cloud.sqs.listener.IdentifiableContainerComponent
getId, setIdMethods inherited from interface org.springframework.context.SmartLifecycle
getPhase, isAutoStartup, stop
-
Method Details
-
getAcknowledgementCallback
AcknowledgementCallback<T> getAcknowledgementCallback()Retrieve an acknowledgement callback that can be used to offer messages to be acknowledged by this processor.- Returns:
- the callback.
-