Class ComposedSqsMessage<T>

  • Type Parameters:
    T - The (deserialized) type of the body held by this Message
    All Implemented Interfaces:
    SqsMessage<T>

    public final class ComposedSqsMessage<T>
    extends AbstractSqsMessage<T>
    A convenient implementation of SqsMessage that's composed of and built by all possible properties.
    • Method Detail

      • fromBody

        public static <T> SqsMessage<T> fromBody​(T body)
      • 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