org.apache.curator.framework.recipes.leader
Interface LeaderSelectorListener
- All Superinterfaces:
- org.apache.curator.framework.state.ConnectionStateListener
- All Known Implementing Classes:
- LeaderSelectorListenerAdapter
public interface LeaderSelectorListener
- extends org.apache.curator.framework.state.ConnectionStateListener
Notification for leadership
- See Also:
LeaderSelector
|
Method Summary |
void |
takeLeadership(org.apache.curator.framework.CuratorFramework client)
Called when your instance has been granted leadership. |
| Methods inherited from interface org.apache.curator.framework.state.ConnectionStateListener |
stateChanged |
takeLeadership
void takeLeadership(org.apache.curator.framework.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
Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.