Module org.elasticsearch.server
Package org.elasticsearch.reservedstate
Record Class NonStateTransformResult
java.lang.Object
java.lang.Record
org.elasticsearch.reservedstate.NonStateTransformResult
A wrapper class for notifying listeners on non cluster state transformation operation completion.
Certain ReservedClusterStateHandler
implementations may need to perform additional
operations other than modifying the cluster state. This can range from cache
invalidation to implementing state handlers that do not write to the cluster state, e.g. role mappings.
These additional transformation steps are implemented as separate async operation after the validation of
the cluster state update steps (trial run in ReservedClusterStateService
).
-
Constructor Summary
ConstructorsConstructorDescriptionNonStateTransformResult
(String handlerName, Set<String> updatedKeys) Creates an instance of aNonStateTransformResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thehandlerName
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.Returns the value of theupdatedKeys
record component.
-
Constructor Details
-
NonStateTransformResult
Creates an instance of aNonStateTransformResult
record class.- Parameters:
handlerName
- the value for thehandlerName
record componentupdatedKeys
- the value for theupdatedKeys
record 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)
. -
handlerName
Returns the value of thehandlerName
record component.- Returns:
- the value of the
handlerName
record component
-
updatedKeys
Returns the value of theupdatedKeys
record component.- Returns:
- the value of the
updatedKeys
record component
-