Interface ClusterApplier

    • Method Detail

      • 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​(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
        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
      • newClusterStateBuilder

        ClusterState.Builder newClusterStateBuilder()
        Creates a new cluster state builder that is initialized with the cluster name and all initial cluster state customs.