Package io.atleon.aws.sqs
Class AbstractSqsMessage<T>
- java.lang.Object
-
- io.atleon.aws.sqs.AbstractSqsMessage<T>
-
- Type Parameters:
T- The type of the body held by this Message
- All Implemented Interfaces:
SqsMessage<T>
- Direct Known Subclasses:
ComposedSqsMessage,DeserializedSqsMessage,SqsReceiverMessage,SqsSenderMessage
public abstract class AbstractSqsMessage<T> extends Object implements SqsMessage<T>
Base implementation of anSqsMessage
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSqsMessage(Map<String,software.amazon.awssdk.services.sqs.model.MessageAttributeValue> messageAttributes, Map<String,software.amazon.awssdk.services.sqs.model.MessageSystemAttributeValue> messageSystemAttributes, T body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tbody()Map<String,software.amazon.awssdk.services.sqs.model.MessageAttributeValue>messageAttributes()Optional<software.amazon.awssdk.services.sqs.model.MessageSystemAttributeValue>messageSystemAttribute(String key)Optional<software.amazon.awssdk.services.sqs.model.MessageSystemAttributeValue>messageSystemAttribute(software.amazon.awssdk.services.sqs.model.MessageSystemAttributeName key)Map<String,software.amazon.awssdk.services.sqs.model.MessageSystemAttributeValue>messageSystemAttributes()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.atleon.aws.sqs.SqsMessage
messageDeduplicationId, messageGroupId, senderDelaySeconds
-
-
-
-
Method Detail
-
messageAttributes
public final Map<String,software.amazon.awssdk.services.sqs.model.MessageAttributeValue> messageAttributes()
- Specified by:
messageAttributesin interfaceSqsMessage<T>
-
messageSystemAttribute
public final Optional<software.amazon.awssdk.services.sqs.model.MessageSystemAttributeValue> messageSystemAttribute(software.amazon.awssdk.services.sqs.model.MessageSystemAttributeName key)
-
messageSystemAttribute
public final Optional<software.amazon.awssdk.services.sqs.model.MessageSystemAttributeValue> messageSystemAttribute(String key)
-
messageSystemAttributes
public final Map<String,software.amazon.awssdk.services.sqs.model.MessageSystemAttributeValue> messageSystemAttributes()
- Specified by:
messageSystemAttributesin interfaceSqsMessage<T>
-
body
public final T body()
- Specified by:
bodyin interfaceSqsMessage<T>
-
-