Interface LocalNodeMasterListener

All Superinterfaces:
ClusterStateListener

public interface LocalNodeMasterListener extends ClusterStateListener
Enables listening to master changes events of the local node (when the local node becomes the master, and when the local node cease being a master).
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called when cluster state changes.
    void
    Called when the local node used to be the master, a new master was elected and it's no longer the local node.
    void
    Called when local node is elected to be the master
  • Method Details

    • onMaster

      void onMaster()
      Called when local node is elected to be the master
    • offMaster

      void offMaster()
      Called when the local node used to be the master, a new master was elected and it's no longer the local node.
    • clusterChanged

      default void clusterChanged(ClusterChangedEvent event)
      Description copied from interface: ClusterStateListener
      Called when cluster state changes.
      Specified by:
      clusterChanged in interface ClusterStateListener