Interface LeaderElectionStateChangeListener


public interface LeaderElectionStateChangeListener
Callback interface that can be used to listen for state changes so that the node can be notified when it becomes the Elected Leader for a role or is no longer the Elected Leader
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked when the running node is elected as leader
    void
    Invoked when the running node is no longer elected as leader
  • Method Details

    • onStartLeading

      void onStartLeading()
      Invoked when the running node is elected as leader
    • onStopLeading

      void onStopLeading()
      Invoked when the running node is no longer elected as leader