Record Class PublishMessageResult<T>
java.lang.Object
java.lang.Record
io.awspring.cloud.sns.core.async.PublishMessageResult<T>
- Type Parameters:
T- the message payload type- Record Components:
message- the original message that was sentmessageId- the SNS message ID returned by AWSsequenceNumber- the sequence number for FIFO topics (null for standard topics)
-
Constructor Summary
ConstructorsConstructorDescriptionPublishMessageResult(Message<T> message, String messageId, @Nullable String sequenceNumber) Creates an instance of aPublishMessageResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns the value of themessageIdrecord component.@Nullable StringReturns the value of thesequenceNumberrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PublishMessageResult
Creates an instance of aPublishMessageResultrecord class.- Parameters:
message- the value for themessagerecord componentmessageId- the value for themessageIdrecord componentsequenceNumber- the value for thesequenceNumberrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
message
-
messageId
-
sequenceNumber
Returns the value of thesequenceNumberrecord component.- Returns:
- the value of the
sequenceNumberrecord component
-