Package io.atleon.aws.sqs
Class ComposedSqsMessage<T>
- java.lang.Object
-
- io.atleon.aws.sqs.AbstractSqsMessage<T>
-
- io.atleon.aws.sqs.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 ofSqsMessagethat's composed of and built by all possible properties.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classComposedSqsMessage.Builder<T>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> SqsMessage<T>fromBody(T body)Optional<String>messageDeduplicationId()Optional<String>messageGroupId()static <T> ComposedSqsMessage.Builder<T>newBuilder()static <T> ComposedSqsMessage.Builder<T>newBuilder(T body)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
-
fromBody
public static <T> SqsMessage<T> fromBody(T body)
-
newBuilder
public static <T> ComposedSqsMessage.Builder<T> newBuilder(T body)
-
newBuilder
public static <T> ComposedSqsMessage.Builder<T> newBuilder()
-
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
-
-