Record Class AckOptions
java.lang.Object
java.lang.Record
org.j7m.middleware.api.messaging.AckOptions
- Record Components:
leaseId- expected lease identifier
- All Implemented Interfaces:
Serializable
Acknowledge options for a currently leased message.
Production queue implementations require the current lease identifier for
normal mutation. A null lease identifier is retained only as a
source-compatible construction value; implementations must fail safely rather
than acknowledge a message without validating the current lease owner.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAckOptions(LeaseId leaseId) Creates an instance of aAckOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AckOptionsdefaults()Returns default acknowledge options without an explicit lease id.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.leaseId()Returns the value of theleaseIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AckOptions
-
-
Method Details
-
defaults
Returns default acknowledge options without an explicit lease id.Calling a production queue with this value is expected to fail with a stale fencing or lease-token error unless the implementation documents a narrower internal repair path.
- Returns:
- default acknowledge options
-
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). -
leaseId
-