Interface ClusterApplier

All Known Implementing Classes:
ClusterApplierService

public interface ClusterApplier
  • Method Details

    • setInitialState

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

      void onNewClusterState(String source, Supplier<ClusterState> clusterStateSupplier, ClusterApplier.ClusterApplyListener listener)
      Method to invoke when a new cluster state is available to be applied
      Parameters:
      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