Package io.awspring.cloud.sqs.operations
Interface SqsSendOptions<T>
- Type Parameters:
T
- the payload type.
public interface SqsSendOptions<T>
Options for sending messages to SQS queues, with a method chaining API.
-
Method Summary
Modifier and TypeMethodDescriptiondelaySeconds
(Integer delaySeconds) Set a delay for the message in seconds.Add a header to be sent in the message.Add headers to be sent in the message.messageDeduplicationId
(String messageDeduplicationId) Set the messageDeduplicationId for the message.messageGroupId
(String messageGroupId) Set the messageGroupId for the message.Set the payload to send in the message.Set the queue name, url or ARN to send the message to.
-
Method Details
-
queue
Set the queue name, url or ARN to send the message to.- Parameters:
queue
- the queue name.- Returns:
- the options instance.
-
payload
Set the payload to send in the message. The payload will be serialized if necessary.- Parameters:
payload
- the payload.- Returns:
- the options instance.
-
header
Add a header to be sent in the message. The header will be sent as a MessageAttribute.- Parameters:
headerName
- the header name.headerValue
- the header value.- Returns:
- the options instance.
-
headers
Add headers to be sent in the message. The headers will be sent as MessageAttributes.- Parameters:
headers
- the headers to add.- Returns:
- the options instance.
-
delaySeconds
Set a delay for the message in seconds.- Parameters:
delaySeconds
- the delay in seconds.- Returns:
- the options instance.
-
messageGroupId
Set the messageGroupId for the message. If none is provided for a FIFO queue, a random UUID is generated.- Parameters:
messageGroupId
- the id.- Returns:
- the options instance.
-
messageDeduplicationId
Set the messageDeduplicationId for the message. If none is provided for a FIFO queue, a random UUID is generated.- Parameters:
messageDeduplicationId
- the id.- Returns:
- the options instance.
-