Interface NodeJoinController.ElectionCallback

Enclosing class:
NodeJoinController

public static interface NodeJoinController.ElectionCallback
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    called when the local node is successfully elected as master Guaranteed to be called on the cluster state update thread
    void
    called when the local node failed to be elected as master Guaranteed to be called on the cluster state update thread
  • Method Details

    • onElectedAsMaster

      void onElectedAsMaster(ClusterState state)
      called when the local node is successfully elected as master Guaranteed to be called on the cluster state update thread
    • onFailure

      void onFailure(Throwable t)
      called when the local node failed to be elected as master Guaranteed to be called on the cluster state update thread