public final class FollowerRole extends ActiveRole
| Constructor and Description |
|---|
FollowerRole(io.atomix.protocols.raft.impl.RaftContext context) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
close() |
CompletableFuture<RaftRole> |
open() |
RaftServer.Role |
role()
Returns the Raft state represented by this state.
|
onAppend, onPoll, onVoteonCloseSession, onCommand, onInstall, onJoin, onKeepAlive, onLeave, onMetadata, onOpenSession, onQuery, onReconfigureonConfigure, onTransferisClosed, isOpen, toStringpublic FollowerRole(io.atomix.protocols.raft.impl.RaftContext context)
public RaftServer.Role role()
AbstractRolerole in interface RaftRolerole in class PassiveRolepublic CompletableFuture<RaftRole> open()
open in interface io.atomix.utils.Managed<RaftRole>open in class PassiveRolepublic CompletableFuture<Void> close()
close in interface io.atomix.utils.Managed<RaftRole>close in class PassiveRoleCopyright © 2013–2017. All rights reserved.