com.netflix.curator.framework.recipes.leader
Interface LeaderSelectorListener

All Superinterfaces:
ConnectionStateListener

public interface LeaderSelectorListener
extends ConnectionStateListener

Notification for leadership

See Also:
LeaderSelector

Method Summary
 void takeLeadership(CuratorFramework client)
          Called when your instance has been granted leadership.
 
Methods inherited from interface com.netflix.curator.framework.state.ConnectionStateListener
stateChanged
 

Method Detail

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


Copyright © 2012. All Rights Reserved.