public static interface MultipleComponentLeaderElectionDriver.Listener
MultipleComponentLeaderElectionDriver
.Modifier and Type | Method and Description |
---|---|
void |
isLeader(UUID leaderSessionID)
Callback that is called once the driver obtains the leadership.
|
void |
notifyAllKnownLeaderInformation(LeaderInformationRegister leaderInformationRegister)
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(UUID leaderSessionID)
void notLeader()
void notifyLeaderInformationChange(String componentId, LeaderInformation leaderInformation)
componentId
- identifying the component whose leader information has changedleaderInformation
- new leader informationvoid notifyAllKnownLeaderInformation(LeaderInformationRegister leaderInformationRegister)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.