public interface PrimaryElectionService extends ListenerService<PrimaryElectionEvent,PrimaryElectionEventListener>
The primary election service is used to elect primaries and backups for primary-backup replication protocols.
Each partition is provided a distinct PrimaryElection through which it elects a primary.
| Modifier and Type | Method and Description |
|---|---|
PrimaryElection |
getElectionFor(PartitionId partitionId)
Returns the primary election for the given partition identifier.
|
addListener, removeListenerPrimaryElection getElectionFor(PartitionId partitionId)
partitionId - the partition identifier for which to return the primary electionCopyright © 2013–2018. All rights reserved.