Package io.awspring.cloud.sqs.operations
Interface SqsTemplateOptions
- All Superinterfaces:
MessagingTemplateOptions<SqsTemplateOptions>
Sqs specific options for the
SqsTemplate
.-
Method Summary
Modifier and TypeMethodDescriptiondefaultQueue
(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.
-