Package io.awspring.cloud.sqs.listener
Class SqsContainerOptions
java.lang.Object
io.awspring.cloud.sqs.listener.AbstractContainerOptions<SqsContainerOptions,SqsContainerOptionsBuilder>
io.awspring.cloud.sqs.listener.SqsContainerOptions
- All Implemented Interfaces:
ContainerOptions<SqsContainerOptions,SqsContainerOptionsBuilder>
public class SqsContainerOptions
extends AbstractContainerOptions<SqsContainerOptions,SqsContainerOptionsBuilder>
Sqs specific implementation of
ContainerOptions.- Since:
- 3.0
- Author:
- Tomaz Fernandes
-
Nested Class Summary
Nested classes/interfaces inherited from class io.awspring.cloud.sqs.listener.AbstractContainerOptions
AbstractContainerOptions.Builder<B extends ContainerOptionsBuilder<B,O>, O extends ContainerOptions<O, B>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSqsContainerOptions(io.awspring.cloud.sqs.listener.SqsContainerOptions.BuilderImpl builder) Create aContainerOptionsinstance from the builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic SqsContainerOptionsBuilderbuilder()Create a new builder instance.Get messages grouping strategy in FIFO queues when retrieved by the container in listener modeListenerMode.BATCH.Get the messageAttributeNames that will be retrieved and added as headers in messages.Get theMessageSystemAttributeNames that will be retrieved and added as headers in messages.Get the message visibility for messages retrieved by the container.Collection<software.amazon.awssdk.services.sqs.model.QueueAttributeName>Get theQueueAttributeNames that will be retrieved from the queue and added as headers to the messages.Get theQueueNotFoundStrategyfor the container.Methods inherited from class io.awspring.cloud.sqs.listener.AbstractContainerOptions
getAcknowledgementInterval, getAcknowledgementMode, getAcknowledgementOrdering, getAcknowledgementResultTaskExecutor, getAcknowledgementShutdownTimeout, getAcknowledgementThreshold, getBackPressureMode, getComponentsTaskExecutor, getListenerMode, getListenerShutdownTimeout, getMaxConcurrentMessages, getMaxDelayBetweenPolls, getMaxMessagesPerPoll, getMessageConverter, getPollBackOffPolicy, getPollTimeout, isAutoStartupMethods 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.ContainerOptions
configure, configure, createCopy
-
Constructor Details
-
SqsContainerOptions
protected SqsContainerOptions(io.awspring.cloud.sqs.listener.SqsContainerOptions.BuilderImpl builder) Create aContainerOptionsinstance from the builder.- Parameters:
builder- the builder.
-
-
Method Details
-
builder
Create a new builder instance.- Returns:
- the new builder instance.
-
getQueueAttributeNames
public Collection<software.amazon.awssdk.services.sqs.model.QueueAttributeName> getQueueAttributeNames()Get theQueueAttributeNames that will be retrieved from the queue and added as headers to the messages.- Returns:
- the names.
-
getMessageAttributeNames
Get the messageAttributeNames that will be retrieved and added as headers in messages. Default is ALL.- Returns:
- the names.
-
getMessageSystemAttributeNames
Get theMessageSystemAttributeNames that will be retrieved and added as headers in messages.- Returns:
- the names.
-
getMessageVisibility
Get the message visibility for messages retrieved by the container.- Returns:
- the visibility.
-
getFifoBatchGroupingStrategy
Get messages grouping strategy in FIFO queues when retrieved by the container in listener modeListenerMode.BATCH.- Returns:
- the fifo batch message grouping strategy.
-
getQueueNotFoundStrategy
Get theQueueNotFoundStrategyfor the container.- Returns:
- the strategy.
-
toBuilder
Description copied from interface:ContainerOptionsCreates a new) instance configured with this options. Note that any changes made to the builder will have no effect on this object.- Returns:
- the new builder instance.
-