public interface ClusterStateTaskExecutor<T>
Modifier and Type | Interface and Description |
---|---|
static class |
ClusterStateTaskExecutor.BatchResult<T>
Represents the result of a batched execution of cluster state update tasks
|
static class |
ClusterStateTaskExecutor.TaskResult |
Modifier and Type | Method and Description |
---|---|
default void |
clusterStatePublished(ClusterState newClusterState)
Callback invoked after new cluster state is published.
|
ClusterStateTaskExecutor.BatchResult<T> |
execute(ClusterState currentState,
java.util.List<T> tasks)
Update the cluster state based on the current state and the given tasks.
|
default boolean |
runOnlyOnMaster()
indicates whether this task should only run if current node is master
|
ClusterStateTaskExecutor.BatchResult<T> execute(ClusterState currentState, java.util.List<T> tasks) throws java.lang.Exception
java.lang.Exception
default boolean runOnlyOnMaster()
default void clusterStatePublished(ClusterState newClusterState)