Package org.apache.druid.discovery
Interface DruidLeaderSelector.Listener
- Enclosing interface:
- DruidLeaderSelector
public static interface DruidLeaderSelector.Listener
-
Method Summary
Modifier and TypeMethodDescriptionvoidNotification that this node should start activities to be done by the leader.voidNotification that this node should stop activities which are done by the leader.
-
Method Details
-
becomeLeader
void becomeLeader()Notification that this node should start activities to be done by the leader. If this method throws an exception, the implementation should resign leadership in the underlying system such as curator. -
stopBeingLeader
void stopBeingLeader()Notification that this node should stop activities which are done by the leader. If this method throws an exception, an alert should be created.
-