Record Class OConfirmedRetryOp
java.lang.Object
java.lang.Record
com.orientechnologies.orient.distributed.context.coordination.message.OConfirmedRetryOp
- All Implemented Interfaces:
ODistributedMessage
public record OConfirmedRetryOp(OTransactionIdPromise promiseId, OOperationMessage op)
extends Record
implements ODistributedMessage
-
Constructor Summary
ConstructorsConstructorDescriptionOConfirmedRetryOp(OTransactionIdPromise promiseId, OOperationMessage op) Creates an instance of aOConfirmedRetryOprecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(OOperationContext ctx) voidcancel(OOperationContext ctx) final booleanIndicates whether some other object is "equal to" this one.getOp()final inthashCode()Returns a hash code value for this object.op()Returns the value of theoprecord component.Returns the value of thepromiseIdrecord component.voidfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OConfirmedRetryOp
Creates an instance of aOConfirmedRetryOprecord class.- Parameters:
promiseId- the value for thepromiseIdrecord componentop- the value for theoprecord component
-
-
Method Details
-
getPromiseId
- Specified by:
getPromiseIdin interfaceODistributedMessage
-
getOp
- Specified by:
getOpin interfaceODistributedMessage
-
validate
- Specified by:
validatein interfaceODistributedMessage
-
apply
- Specified by:
applyin interfaceODistributedMessage
-
cancel
- Specified by:
cancelin interfaceODistributedMessage
-
recoordinate
- Specified by:
recoordinatein interfaceODistributedMessage
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
promiseId
Returns the value of thepromiseIdrecord component.- Returns:
- the value of the
promiseIdrecord component
-
op
Returns the value of theoprecord component.- Returns:
- the value of the
oprecord component
-