Package io.atleon.aws.sqs
Class DeserializedSqsMessage<T>
- java.lang.Object
-
- io.atleon.aws.sqs.AbstractSqsMessage<T>
-
- io.atleon.aws.sqs.DeserializedSqsMessage<T>
-
- Type Parameters:
T- The (deserialized) type of the body held by this Message
- All Implemented Interfaces:
ReceivedSqsMessage<T>,SqsMessage<T>
public final class DeserializedSqsMessage<T> extends AbstractSqsMessage<T> implements ReceivedSqsMessage<T>
An inboundSqsMessagewhose body has been deserialized.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> DeserializedSqsMessage<T>deserialize(ReceivedSqsMessage<String> serializedMessage, BodyDeserializer<T> bodyDeserializer)Optional<String>messageDeduplicationId()Optional<String>messageGroupId()StringmessageId()Unique identifier for this Message.StringreceiptHandle()The Receipt Handle of this message, used to manage its visibility and deletion.-
Methods inherited from class io.atleon.aws.sqs.AbstractSqsMessage
body, messageAttributes, messageSystemAttribute, messageSystemAttribute, 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
body, messageAttributes, messageSystemAttributes, senderDelaySeconds
-
-
-
-
Method Detail
-
deserialize
public static <T> DeserializedSqsMessage<T> deserialize(ReceivedSqsMessage<String> serializedMessage, BodyDeserializer<T> bodyDeserializer)
-
messageId
public String messageId()
Description copied from interface:ReceivedSqsMessageUnique identifier for this Message.- Specified by:
messageIdin interfaceReceivedSqsMessage<T>
-
receiptHandle
public String receiptHandle()
Description copied from interface:ReceivedSqsMessageThe Receipt Handle of this message, used to manage its visibility and deletion. Note that this value is unique to the act of receiving a Message with any given ID, and a unique Message with any given ID will receive a unique Receipt Handle each time it is received.- Specified by:
receiptHandlein interfaceReceivedSqsMessage<T>
-
messageDeduplicationId
public Optional<String> messageDeduplicationId()
- Specified by:
messageDeduplicationIdin interfaceSqsMessage<T>
-
messageGroupId
public Optional<String> messageGroupId()
- Specified by:
messageGroupIdin interfaceSqsMessage<T>
-
-