Record Class OConfirmResult.PromisedToOther
java.lang.Object
java.lang.Record
com.orientechnologies.orient.distributed.context.coordination.OConfirmResult.PromisedToOther
- All Implemented Interfaces:
OConfirmResult
- Enclosing interface:
OConfirmResult
public static record OConfirmResult.PromisedToOther(OTransactionIdPromise toCancel)
extends Record
implements OConfirmResult
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.distributed.context.coordination.OConfirmResult
OConfirmResult.AlreadyPresent, OConfirmResult.MissingPrevious, OConfirmResult.PromisedToOther, OConfirmResult.Success, OConfirmResult.SuccessNotPromised -
Constructor Summary
ConstructorsConstructorDescriptionPromisedToOther(OTransactionIdPromise toCancel) Creates an instance of aPromisedToOtherrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanapply(OOperationContext ctx) Applied the operation based on the kind of result,final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toCancel()Returns the value of thetoCancelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PromisedToOther
Creates an instance of aPromisedToOtherrecord class.- Parameters:
toCancel- the value for thetoCancelrecord component
-
-
Method Details
-
apply
Description copied from interface:OConfirmResultApplied the operation based on the kind of result,- Specified by:
applyin interfaceOConfirmResult- Parameters:
ctx-- Returns:
- if return true means is complete, false means it should retry.
-
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). -
toCancel
Returns the value of thetoCancelrecord component.- Returns:
- the value of the
toCancelrecord component
-