public interface PrimaryElection extends io.atomix.utils.event.ListenerService<PrimaryElectionEvent,PrimaryElectionEventListener>
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the primary election.
|
CompletableFuture<PrimaryTerm> |
enter(io.atomix.cluster.NodeId nodeId)
Enters the primary election.
|
CompletableFuture<PrimaryTerm> |
getTerm()
Returns the current term.
|
CompletableFuture<PrimaryTerm> enter(io.atomix.cluster.NodeId nodeId)
nodeId - the identifier of the node to enter the electionCompletableFuture<PrimaryTerm> getTerm()
void close()
Copyright © 2013–2018. All rights reserved.