Package io.awspring.cloud.sqs.operations
Interface SqsTemplateOptions
- All Superinterfaces:
MessagingTemplateOptions<SqsTemplateOptions>
Sqs specific options for the
SqsTemplate
.-
Method Summary
Modifier and TypeMethodDescriptioncontentBasedDeduplication
(TemplateContentBasedDeduplication contentBasedDeduplication) Set the ContentBasedDeduplication queue attribute value of the queues the template is sending messages to.defaultQueue
(String defaultQueue) Set the default queue for this template.messageAttributeNames
(Collection<String> messageAttributeNames) The message attributes to be retrieved with the message and added as headers to received messages.messageSystemAttributeNames
(Collection<software.amazon.awssdk.services.sqs.model.MessageSystemAttributeName> messageSystemAttributeNames) The message system attributes to be retrieved with the message and added as headers to received messages.queueAttributeNames
(Collection<software.amazon.awssdk.services.sqs.model.QueueAttributeName> queueAttributeNames) The queue attribute names that will be retrieved by this template and added as headers to received messages.queueNotFoundStrategy
(QueueNotFoundStrategy queueNotFoundStrategy) TheQueueNotFoundStrategy
for this template.Methods inherited from interface io.awspring.cloud.sqs.operations.MessagingTemplateOptions
acknowledgementMode, additionalHeaderForReceive, additionalHeadersForReceive, defaultMaxNumberOfMessages, defaultPayloadClass, defaultPollTimeout, sendBatchFailureHandlingStrategy
-
Method Details
-
defaultQueue
Set the default queue for this template. Default is blank.- Parameters:
defaultQueue
- the default queue.- Returns:
- the options instance.
-
queueNotFoundStrategy
TheQueueNotFoundStrategy
for this template.- Parameters:
queueNotFoundStrategy
- the strategy.- Returns:
- the options instance.
-
queueAttributeNames
SqsTemplateOptions queueAttributeNames(Collection<software.amazon.awssdk.services.sqs.model.QueueAttributeName> queueAttributeNames) The queue attribute names that will be retrieved by this template and added as headers to received messages. Default is none.- Parameters:
queueAttributeNames
- the names.- Returns:
- the options instance.
-
messageAttributeNames
The message attributes to be retrieved with the message and added as headers to received messages. Default is ALL.- Parameters:
messageAttributeNames
- the names.- Returns:
- the options instance.
-
messageSystemAttributeNames
SqsTemplateOptions messageSystemAttributeNames(Collection<software.amazon.awssdk.services.sqs.model.MessageSystemAttributeName> messageSystemAttributeNames) The message system attributes to be retrieved with the message and added as headers to received messages. Default is ALL.- Parameters:
messageSystemAttributeNames
- the names.- Returns:
- the options instance.
-
contentBasedDeduplication
SqsTemplateOptions contentBasedDeduplication(TemplateContentBasedDeduplication contentBasedDeduplication) Set the ContentBasedDeduplication queue attribute value of the queues the template is sending messages to. By default, this is set to AUTO and the queue attribute value will be resolved automatically per queue. If set to ENABLED or DISABLED, the value will apply to all queues.- Parameters:
contentBasedDeduplication
- the ContentBasedDeduplication value.- Returns:
- the options instance.
-