public interface ClusterApplier
Modifier and Type | Method and Description |
---|---|
ClusterState.Builder |
newClusterStateBuilder()
Creates a new cluster state builder that is initialized with the cluster name and all initial cluster state customs.
|
void |
onNewClusterState(java.lang.String source,
java.util.function.Supplier<ClusterState> clusterStateSupplier,
ClusterStateTaskListener listener)
Method to invoke when a new cluster state is available to be applied
|
void |
setInitialState(ClusterState initialState)
Sets the initial state for this applier.
|
void setInitialState(ClusterState initialState)
initialState
- the initial state to setvoid onNewClusterState(java.lang.String source, java.util.function.Supplier<ClusterState> clusterStateSupplier, ClusterStateTaskListener listener)
source
- information where the cluster state came fromclusterStateSupplier
- the cluster state supplier which provides the latest cluster state to applylistener
- callback that is invoked after cluster state is appliedClusterState.Builder newClusterStateBuilder()