public interface LeaderSelectorListener extends ConnectionStateListener
LeaderSelector
Modifier and Type | Method and Description |
---|---|
void |
takeLeadership(CuratorFramework client)
Called when your instance has been granted leadership.
|
stateChanged
void takeLeadership(CuratorFramework client) throws java.lang.Exception
client
- the clientjava.lang.Exception
- any errors