Package io.awspring.cloud.sqs.listener
Class FifoSqsComponentFactory<T>
java.lang.Object
io.awspring.cloud.sqs.listener.FifoSqsComponentFactory<T>
- All Implemented Interfaces:
ContainerComponentFactory<T,SqsContainerOptions>
public class FifoSqsComponentFactory<T>
extends Object
implements ContainerComponentFactory<T,SqsContainerOptions>
ContainerComponentFactory implementation for creating components for FIFO queues.- Since:
- 3.0
- Author:
- Tomaz Fernandes
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BatchingAcknowledgementProcessor<T>configureBatchingAckProcessor(SqsContainerOptions options, BatchingAcknowledgementProcessor<T> processor) protected ImmediateAcknowledgementProcessor<T>configureImmediateProcessor(ImmediateAcknowledgementProcessor<T> processor, SqsContainerOptions options) Create anAcknowledgementProcessorinstance.protected BatchingAcknowledgementProcessor<T>protected ImmediateAcknowledgementProcessor<T>createMessageSink(SqsContainerOptions options) Create aMessageSinkinstance.createMessageSource(SqsContainerOptions options) Create aMessageSourceinstance.booleansupports(Collection<String> queueNames, SqsContainerOptions options) Whether this factory supports the given queues based on the queue names.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.awspring.cloud.sqs.listener.ContainerComponentFactory
createAcknowledgementHandler
-
Constructor Details
-
FifoSqsComponentFactory
public FifoSqsComponentFactory()
-
-
Method Details
-
supports
Description copied from interface:ContainerComponentFactoryWhether this factory supports the given queues based on the queue names.- Specified by:
supportsin interfaceContainerComponentFactory<T,SqsContainerOptions> - Parameters:
queueNames- the queueNames.options-ContainerOptionsinstance for evaluating support.- Returns:
- true if the queues are supported.
-
createMessageSource
Description copied from interface:ContainerComponentFactoryCreate aMessageSourceinstance.- Specified by:
createMessageSourcein interfaceContainerComponentFactory<T,SqsContainerOptions> - Parameters:
options-ContainerOptionsinstance for determining instance type and configuring.- Returns:
- the instance.
-
createMessageSink
Description copied from interface:ContainerComponentFactoryCreate aMessageSinkinstance.- Specified by:
createMessageSinkin interfaceContainerComponentFactory<T,SqsContainerOptions> - Parameters:
options-ContainerOptionsinstance for determining instance type and configuring.- Returns:
- the instance.
-
createAcknowledgementProcessor
Description copied from interface:ContainerComponentFactoryCreate anAcknowledgementProcessorinstance.- Specified by:
createAcknowledgementProcessorin interfaceContainerComponentFactory<T,SqsContainerOptions> - Parameters:
options-ContainerOptionsinstance for determining instance type and configuring.- Returns:
- the instance.
-
createImmediateProcessorInstance
-
createBatchingProcessorInstance
-
configureImmediateProcessor
protected ImmediateAcknowledgementProcessor<T> configureImmediateProcessor(ImmediateAcknowledgementProcessor<T> processor, SqsContainerOptions options) -
configureBatchingAckProcessor
protected BatchingAcknowledgementProcessor<T> configureBatchingAckProcessor(SqsContainerOptions options, BatchingAcknowledgementProcessor<T> processor)
-