Record Class OResponseCollector.CompleteInfo
java.lang.Object
java.lang.Record
com.orientechnologies.orient.distributed.context.OResponseCollector.CompleteInfo
- Enclosing class:
- OResponseCollector
public static record OResponseCollector.CompleteInfo(OCompleteAction action, OTransactionIdPromise promise, Set<ONodeId> nodes, Optional<OAcceptResult> result)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCompleteInfo(OCompleteAction action, OTransactionIdPromise promise, Set<ONodeId> nodes, Optional<OAcceptResult> result) Creates an instance of aCompleteInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nodes()Returns the value of thenodesrecord component.promise()Returns the value of thepromiserecord component.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CompleteInfo
public CompleteInfo(OCompleteAction action, OTransactionIdPromise promise, Set<ONodeId> nodes, Optional<OAcceptResult> result) Creates an instance of aCompleteInforecord class.- Parameters:
action- the value for theactionrecord componentpromise- the value for thepromiserecord componentnodes- the value for thenodesrecord componentresult- the value for theresultrecord component
-
-
Method Details
-
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). -
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
promise
Returns the value of thepromiserecord component.- Returns:
- the value of the
promiserecord component
-
nodes
Returns the value of thenodesrecord component.- Returns:
- the value of the
nodesrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-