Module org.elasticsearch.compute
Record Class IsBlockedResult
java.lang.Object
java.lang.Record
org.elasticsearch.compute.operator.IsBlockedResult
- Record Components:
listener- a listener to check for blocked-nessreason- the reason that the Operator is blocked. This is used as aMapkey so this shouldn't vary wildly, but it should be descriptive of the reason the operator went async.
Is this
Operator blocked?
If the listener's SubscribableListener.isDone() method
returns true then the Operator is not blocked.
If the Operator is blocked then you can
SubscribableListener.addListener(org.elasticsearch.action.ActionListener<T>) to the listener to be
notified when the Operator is unblocked.
-
Constructor Summary
ConstructorsConstructorDescriptionIsBlockedResult(SubscribableListener<Void> listener, String reason) Creates an instance of aIsBlockedResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.listener()Returns the value of thelistenerrecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
listener
Returns the value of thelistenerrecord component.- Returns:
- the value of the
listenerrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-