Interface PublishClusterStateAction.IncomingClusterStateListener

All Known Implementing Classes:
ZenDiscovery
Enclosing class:
PublishClusterStateAction

public static interface PublishClusterStateAction.IncomingClusterStateListener
  • Method Summary

    Modifier and Type Method Description
    void onClusterStateCommitted​(java.lang.String stateUUID, ActionListener<java.lang.Void> processedListener)
    called when a cluster state has been committed and is ready to be processed
    void onIncomingClusterState​(ClusterState incomingState)
    called when a new incoming cluster state has been received.
  • Method Details

    • onIncomingClusterState

      void onIncomingClusterState​(ClusterState incomingState)
      called when a new incoming cluster state has been received. Should validate the incoming state and throw an exception if it's not a valid successor state.
    • onClusterStateCommitted

      void onClusterStateCommitted​(java.lang.String stateUUID, ActionListener<java.lang.Void> processedListener)
      called when a cluster state has been committed and is ready to be processed