Package io.awspring.cloud.sqs.listener
Interface ContainerComponentFactory<T,O extends ContainerOptions<O,?>>
- All Known Implementing Classes:
FifoSqsComponentFactory,StandardSqsComponentFactory
public interface ContainerComponentFactory<T,O extends ContainerOptions<O,?>>
A factory for creating components for the
MessageListenerContainer. Implementations can instantiate and
configure each component according to its strategies, using the provided ContainerOptions.- Since:
- 3.0
- Author:
- Tomaz Fernandes
-
Method Summary
Modifier and TypeMethodDescriptiondefault AcknowledgementHandler<T>createAcknowledgementHandler(O options) Create aAcknowledgementHandlerinstance based on the givenContainerOptionsdefault AcknowledgementProcessor<T>createAcknowledgementProcessor(O options) Create anAcknowledgementProcessorinstance.createMessageSink(O options) Create aMessageSinkinstance.createMessageSource(O options) Create aMessageSourceinstance.default booleansupports(Collection<String> queueNames, O options) Whether this factory supports the given queues based on the queue names.
-
Method Details
-
supports
Whether this factory supports the given queues based on the queue names.- Parameters:
queueNames- the queueNames.options-ContainerOptionsinstance for evaluating support.- Returns:
- true if the queues are supported.
-
createMessageSource
Create aMessageSourceinstance.- Parameters:
options-ContainerOptionsinstance for determining instance type and configuring.- Returns:
- the instance.
-
createMessageSink
Create aMessageSinkinstance.- Parameters:
options-ContainerOptionsinstance for determining instance type and configuring.- Returns:
- the instance.
-
createAcknowledgementProcessor
Create anAcknowledgementProcessorinstance.- Parameters:
options-ContainerOptionsinstance for determining instance type and configuring.- Returns:
- the instance.
-
createAcknowledgementHandler
Create aAcknowledgementHandlerinstance based on the givenContainerOptions- Parameters:
options- theContainerOptionsinstance- Returns:
- the instance.
-