Interface DruidLeaderSelector.Listener

  • Enclosing interface:
    DruidLeaderSelector

    public static interface DruidLeaderSelector.Listener
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void becomeLeader()
      Notification that this node should start activities to be done by the leader.
      void stopBeingLeader()
      Notification that this node should stop activities which are done by the leader.
    • Method Detail

      • becomeLeader

        void becomeLeader()
        Notification that this node should start activities to be done by the leader. If this method throws an exception, the implementation should resign leadership in the underlying system such as curator.
      • stopBeingLeader

        void stopBeingLeader()
        Notification that this node should stop activities which are done by the leader. If this method throws an exception, an alert should be created.