Package org.elasticsearch.cluster
Record Class ClusterStateTaskExecutor.ClusterTasksResult<T extends ClusterStateTaskListener>
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.ClusterStateTaskExecutor.ClusterTasksResult<T>
- Type Parameters:
T- the type of the cluster state update task
- Enclosing interface:
- ClusterStateTaskExecutor<T extends ClusterStateTaskListener>
public static record ClusterStateTaskExecutor.ClusterTasksResult<T extends ClusterStateTaskListener>(ClusterState resultingState, Map<T extends ClusterStateTaskListener,ClusterStateTaskExecutor.TaskResult> executionResults)
extends Record
Represents the result of a batched execution of cluster state update tasks
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionClusterTasksResult(ClusterState resultingState, Map<T, ClusterStateTaskExecutor.TaskResult> executionResults) Creates an instance of aClusterTasksResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ClusterStateTaskListener>
ClusterStateTaskExecutor.ClusterTasksResult.Builder<T>builder()final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionResultsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theresultingStaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClusterTasksResult
public ClusterTasksResult(@Nullable ClusterState resultingState, Map<T, ClusterStateTaskExecutor.TaskResult> executionResults) Creates an instance of aClusterTasksResultrecord class.- Parameters:
resultingState- the value for theresultingStaterecord componentexecutionResults- the value for theexecutionResultsrecord component
-
-
Method Details
-
builder
public static <T extends ClusterStateTaskListener> ClusterStateTaskExecutor.ClusterTasksResult.Builder<T> builder() -
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). -
resultingState
Returns the value of theresultingStaterecord component.- Returns:
- the value of the
resultingStaterecord component
-
executionResults
Returns the value of theexecutionResultsrecord component.- Returns:
- the value of the
executionResultsrecord component
-