Package io.atleon.aws.sqs
Class SqsSenderMessage<C>
- java.lang.Object
-
- io.atleon.aws.sqs.AbstractSqsMessage<String>
-
- io.atleon.aws.sqs.SqsSenderMessage<C>
-
- Type Parameters:
C- The type of correlated metadata propagated from this Message to its send Result
- All Implemented Interfaces:
SqsMessage<String>
public final class SqsSenderMessage<C> extends AbstractSqsMessage<String>
AnSqsMessagewith serialized String body that can be sent to SQS. Each message may reference correlated metadata that is propagated to theSqsSenderResultthat results from the sending of this Message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSqsSenderMessage.Builder<C>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CcorrelationMetadata()The correlated metadata propagated from this Message to its Send Result.Optional<String>messageDeduplicationId()Optional<String>messageGroupId()static <C> SqsSenderMessage.Builder<C>newBuilder()StringrequestId()An internally-used identifier for Send Requests made for this Message.Optional<Integer>senderDelaySeconds()When sending this Message, this is the number of seconds to delay its visibility after sending.-
Methods inherited from class io.atleon.aws.sqs.AbstractSqsMessage
body, messageAttributes, messageSystemAttribute, messageSystemAttribute, messageSystemAttributes
-
-
-
-
Method Detail
-
newBuilder
public static <C> SqsSenderMessage.Builder<C> newBuilder()
-
requestId
public String requestId()
An internally-used identifier for Send Requests made for this Message.
-
senderDelaySeconds
public Optional<Integer> senderDelaySeconds()
Description copied from interface:SqsMessageWhen sending this Message, this is the number of seconds to delay its visibility after sending. Only applicable on standard queues. FIFO queues have this parameter set at the queue level.- Returns:
- Possibly-empty number of seconds to delay this Message's visibility after sending
-
correlationMetadata
public C correlationMetadata()
The correlated metadata propagated from this Message to its Send Result.
-
-