Interface ClusterApplier

All Known Implementing Classes:

public interface ClusterApplier
  • Method Details

    • setInitialState

      void setInitialState​(ClusterState initialState)
      Sets the initial state for this applier. Should only be called once.
      initialState - the initial state to set
    • onNewClusterState

      void onNewClusterState​(java.lang.String source, java.util.function.Supplier<ClusterState> clusterStateSupplier, ClusterApplier.ClusterApplyListener listener)
      Method to invoke when a new cluster state is available to be applied
      source - information where the cluster state came from
      clusterStateSupplier - the cluster state supplier which provides the latest cluster state to apply
      listener - callback that is invoked after cluster state is applied