Package io.awspring.cloud.sqs.listener
Interface SqsContainerOptionsBuilder
- All Superinterfaces:
ContainerOptionsBuilder<SqsContainerOptionsBuilder,SqsContainerOptions>
public interface SqsContainerOptionsBuilder
extends ContainerOptionsBuilder<SqsContainerOptionsBuilder,SqsContainerOptions>
ContainerOptionsBuilder specialization for SQS specific options.- Since:
- 3.0
- Author:
- Tomaz Fernandes
-
Method Summary
Modifier and TypeMethodDescriptionfifoBatchGroupingStrategy(FifoBatchGroupingStrategy fifoBatchGroupingStrategy) Set how the messages from FIFO queues should be grouped when container listener mode isListenerMode.BATCH.messageAttributeNames(Collection<String> messageAttributeNames) Set the messageAttributeNames that will be retrieved and added as headers in messages.messageSystemAttributeNames(Collection<software.amazon.awssdk.services.sqs.model.MessageSystemAttributeName> messageSystemAttributeNames) Set theMessageSystemAttributeNames that will be retrieved and added as headers in messages.messageVisibility(Duration messageVisibility) Set the message visibility for messages retrieved by the container.queueAttributeNames(Collection<software.amazon.awssdk.services.sqs.model.QueueAttributeName> queueAttributeNames) Set theQueueAttributeNames that will be retrieved from the queue and added as headers to the messages.queueNotFoundStrategy(QueueNotFoundStrategy queueNotFoundStrategy) Set theQueueNotFoundStrategyfor the container.Methods inherited from interface io.awspring.cloud.sqs.listener.ContainerOptionsBuilder
acknowledgementInterval, acknowledgementMode, acknowledgementOrdering, acknowledgementResultTaskExecutor, acknowledgementShutdownTimeout, acknowledgementThreshold, autoStartup, backPressureMode, build, componentsTaskExecutor, createCopy, fromBuilder, listenerMode, listenerShutdownTimeout, maxConcurrentMessages, maxDelayBetweenPolls, maxMessagesPerPoll, messageConverter, pollBackOffPolicy, pollTimeout
-
Method Details
-
queueAttributeNames
SqsContainerOptionsBuilder queueAttributeNames(Collection<software.amazon.awssdk.services.sqs.model.QueueAttributeName> queueAttributeNames) Set theQueueAttributeNames that will be retrieved from the queue and added as headers to the messages. Default is none.- Parameters:
queueAttributeNames- the names.- Returns:
- this instance.
-
messageAttributeNames
Set the messageAttributeNames that will be retrieved and added as headers in messages. Default is ALL.- Parameters:
messageAttributeNames- the names.- Returns:
- this instance.
-
messageSystemAttributeNames
SqsContainerOptionsBuilder messageSystemAttributeNames(Collection<software.amazon.awssdk.services.sqs.model.MessageSystemAttributeName> messageSystemAttributeNames) Set theMessageSystemAttributeNames that will be retrieved and added as headers in messages.- Parameters:
messageSystemAttributeNames- the names.- Returns:
- this instance.
-
messageVisibility
Set the message visibility for messages retrieved by the container.- Parameters:
messageVisibility- the visibility timeout.- Returns:
- this instance.
-
fifoBatchGroupingStrategy
SqsContainerOptionsBuilder fifoBatchGroupingStrategy(FifoBatchGroupingStrategy fifoBatchGroupingStrategy) Set how the messages from FIFO queues should be grouped when container listener mode isListenerMode.BATCH. By default, messages are grouped in batches by message group, which are processed in parallel, maintaining order within each message group.- Parameters:
fifoBatchGroupingStrategy- the strategy to batch FIFO messages.- Returns:
- this instance.
-
queueNotFoundStrategy
Set theQueueNotFoundStrategyfor the container.- Parameters:
queueNotFoundStrategy- the strategy.- Returns:
- this instance.
-