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 aClusterTasksResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ClusterStateTaskListener>
ClusterStateTaskExecutor.ClusterTasksResult.Builder<T>builder()
final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexecutionResults
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theresultingState
record component.final String
toString()
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 aClusterTasksResult
record class.- Parameters:
resultingState
- the value for theresultingState
record componentexecutionResults
- the value for theexecutionResults
record 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 theresultingState
record component.- Returns:
- the value of the
resultingState
record component
-
executionResults
Returns the value of theexecutionResults
record component.- Returns:
- the value of the
executionResults
record component
-