Record Class ManagedPartitionResource.Receipt
java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedPartitionResource.Receipt
- Record Components:
status- OK or ERROR for a committed command, NOT_FOUND or OVERLOADED when uncommittedsequence- first committed logical resource ticket, zero for uncommitted requestsepoch- historical ownership epoch of first commit, zero for uncommitted requests
- Enclosing class:
ManagedPartitionResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongepoch()Returns the value of theepochrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longsequence()Returns the value of thesequencerecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Receipt
Validates the durable versus uncommitted receipt shape.- Throws:
IllegalArgumentException- for an invalid status or inconsistent ticket/epoch
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
status
-
sequence
-
epoch
-