Class SQSMessageIdentifier
- java.lang.Object
-
- com.amazon.sqs.javamessaging.acknowledge.SQSMessageIdentifier
-
public class SQSMessageIdentifier extends Object
Identifies an SQS message, when (negative)acknowledging the message
-
-
Constructor Summary
Constructors Constructor Description SQSMessageIdentifier(String queueUrl, String receiptHandle, String sqsMessageId)
SQSMessageIdentifier(String queueUrl, String receiptHandle, String sqsMessageId, String groupId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static SQSMessageIdentifier
fromSQSMessage(SQSMessage sqsMessage)
String
getGroupId()
Returns the group id to which the message belongs.String
getQueueUrl()
Returns the queueUrl where the message was sent or received from.String
getReceiptHandle()
Returns the receipt handle returned after the delivery of the message from SQS.String
getSQSMessageID()
Returns the SQS message id assigned on send.int
hashCode()
String
toString()
-
-
-
Method Detail
-
fromSQSMessage
public static SQSMessageIdentifier fromSQSMessage(SQSMessage sqsMessage) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
getQueueUrl
public String getQueueUrl()
Returns the queueUrl where the message was sent or received from.- Returns:
- queueUrl
-
getReceiptHandle
public String getReceiptHandle()
Returns the receipt handle returned after the delivery of the message from SQS.- Returns:
- receiptHandle
-
getSQSMessageID
public String getSQSMessageID()
Returns the SQS message id assigned on send.- Returns:
- sqsMessageId
-
getGroupId
public String getGroupId()
Returns the group id to which the message belongs. Non-null only for messages received from FIFO queues.- Returns:
- groupId
-
-