Class 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>
    An SqsMessage with serialized String body that can be sent to SQS. Each message may reference correlated metadata that is propagated to the SqsSenderResult that results from the sending of this Message.
    • Method Detail

      • requestId

        public String requestId()
        An internally-used identifier for Send Requests made for this Message.
      • messageDeduplicationId

        public Optional<String> messageDeduplicationId()
      • senderDelaySeconds

        public Optional<Integer> senderDelaySeconds()
        Description copied from interface: SqsMessage
        When 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.