public abstract class AbstractRole extends Object implements RaftRole
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRunning() |
abstract RaftServer.Role |
role()
Returns the Raft state represented by this state.
|
CompletableFuture<RaftRole> |
start() |
CompletableFuture<Void> |
stop() |
String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitonAppend, onCloseSession, onCommand, onConfigure, onInstall, onJoin, onKeepAlive, onLeave, onMetadata, onOpenSession, onPoll, onQuery, onReconfigure, onTransfer, onVotepublic abstract RaftServer.Role role()
public CompletableFuture<RaftRole> start()
start in interface io.atomix.utils.Managed<RaftRole>public boolean isRunning()
isRunning in interface io.atomix.utils.Managed<RaftRole>public CompletableFuture<Void> stop()
stop in interface io.atomix.utils.Managed<RaftRole>Copyright © 2013–2018. All rights reserved.