| Package | Description |
|---|---|
| org.apache.flink.runtime.leaderelection |
| Modifier and Type | Method and Description |
|---|---|
static LeaderInformationRegister |
LeaderInformationRegister.clear(LeaderInformationRegister leaderInformationRegister,
String componentId)
Creates a new
LeaderInformationRegister that matches the passed LeaderInformationRegister except for the entry of componentId which is removed if it
existed. |
static LeaderInformationRegister |
LeaderInformationRegister.empty() |
static LeaderInformationRegister |
LeaderInformationRegister.merge(LeaderInformationRegister leaderInformationRegister,
String componentId,
LeaderInformation leaderInformation)
Merges another
LeaderInformationRegister with additional leader information into a
new LeaderInformationRegister instance. |
static LeaderInformationRegister |
LeaderInformationRegister.of(String componentId,
LeaderInformation leaderInformation)
Creates a single-entry instance containing only the passed information.
|
| Modifier and Type | Method and Description |
|---|---|
static LeaderInformationRegister |
LeaderInformationRegister.clear(LeaderInformationRegister leaderInformationRegister,
String componentId)
Creates a new
LeaderInformationRegister that matches the passed LeaderInformationRegister except for the entry of componentId which is removed if it
existed. |
static LeaderInformationRegister |
LeaderInformationRegister.merge(LeaderInformationRegister leaderInformationRegister,
String componentId,
LeaderInformation leaderInformation)
Merges another
LeaderInformationRegister with additional leader information into a
new LeaderInformationRegister instance. |
void |
DefaultLeaderElectionService.onLeaderInformationChange(LeaderInformationRegister changedLeaderInformation) |
void |
LeaderElectionDriver.Listener.onLeaderInformationChange(LeaderInformationRegister leaderInformationRegister)
Notifies the listener about all currently known leader information.
|
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.