public static interface MultipleComponentLeaderElectionDriver.Listener
MultipleComponentLeaderElectionDriver
.Modifier and Type | Method and Description |
---|---|
void |
isLeader()
Callback that is called once the driver obtains the leadership.
|
void |
notifyAllKnownLeaderInformation(Collection<LeaderInformationWithComponentId> leaderInformationWithComponentIds)
Notifies the listener about all currently known leader information.
|
void |
notifyLeaderInformationChange(String componentId,
LeaderInformation leaderInformation)
Notifies the listener about a changed leader information for the given component.
|
void |
notLeader()
Callback that is called once the driver loses the leadership.
|
void isLeader()
void notLeader()
void notifyLeaderInformationChange(String componentId, LeaderInformation leaderInformation)
componentId
- identifying the component whose leader information has changedleaderInformation
- new leader informationvoid notifyAllKnownLeaderInformation(Collection<LeaderInformationWithComponentId> leaderInformationWithComponentIds)
leaderInformationWithComponentIds
- leader information with component idsCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.