Record Class InboxEntry
java.lang.Object
java.lang.Record
org.j7m.middleware.api.messaging.InboxEntry
- Record Components:
dedupeKey- duplicate-detection identitydecision- duplicate decisionrecordedAt- time the first entry was recordedresultMetadata- safe result metadata
- All Implemented Interfaces:
Serializable
public record InboxEntry(DedupeKey dedupeKey, InboxDuplicateDecision decision, Instant recordedAt, String resultMetadata)
extends Record
implements Serializable
Durable inbox duplicate suppression entry.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInboxEntry(DedupeKey dedupeKey, InboxDuplicateDecision decision, Instant recordedAt, String resultMetadata) Creates inbox entry. -
Method Summary
Modifier and TypeMethodDescriptiondecision()Returns the value of thedecisionrecord component.Returns the value of thededupeKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therecordedAtrecord component.Returns the value of theresultMetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InboxEntry
public InboxEntry(DedupeKey dedupeKey, InboxDuplicateDecision decision, Instant recordedAt, String resultMetadata) Creates inbox entry.- Throws:
IllegalArgumentException- whendedupeKeyis null
-
-
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). -
dedupeKey
-
decision
-
recordedAt
Returns the value of therecordedAtrecord component.- Returns:
- the value of the
recordedAtrecord component
-
resultMetadata
Returns the value of theresultMetadatarecord component.- Returns:
- the value of the
resultMetadatarecord component
-