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 TypeMethodDescriptionmessageAttributeNames(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, 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.
-
queueNotFoundStrategy
Set theQueueNotFoundStrategyfor the container.- Parameters:
queueNotFoundStrategy- the strategy.- Returns:
- this instance.
-