Interface LeaderSelectorListener

All Superinterfaces:
ConnectionStateListener
All Known Implementing Classes:
ExampleClient, LeaderSelectorListenerAdapter

public interface LeaderSelectorListener extends ConnectionStateListener
Notification for leadership
See Also:
  • Method Details

    • takeLeadership

      void takeLeadership(CuratorFramework client) throws Exception
      Called when your instance has been granted leadership. This method should not return until you wish to release leadership
      Parameters:
      client - the client
      Throws:
      Exception - any errors