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 aNonStateTransformResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thehandlerNamerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedKeysrecord component.
-
Constructor Details
-
NonStateTransformResult
Creates an instance of aNonStateTransformResultrecord class.- Parameters:
handlerName- the value for thehandlerNamerecord componentupdatedKeys- the value for theupdatedKeysrecord 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 thehandlerNamerecord component.- Returns:
- the value of the
handlerNamerecord component
-
updatedKeys
Returns the value of theupdatedKeysrecord component.- Returns:
- the value of the
updatedKeysrecord component
-