public interface RaftServerRpc extends RaftServerProtocol, RpcType.Get, Closeable
| Modifier and Type | Interface and Description |
|---|---|
static class |
RaftServerRpc.Builder<B extends RaftServerRpc.Builder,RPC extends RaftServerRpc>
To build
RaftServerRpc objects. |
RaftServerProtocol.Op| Modifier and Type | Method and Description |
|---|---|
void |
addPeers(Iterable<RaftPeer> peers)
add information of the given peers
|
InetSocketAddress |
getInetSocketAddress() |
void |
handleException(RaftPeerId serverId,
Exception e,
boolean reconnect)
Handle the given exception.
|
default void |
notifyNotLeader(RaftGroupId groupId)
The server role changes from leader to a non-leader role.
|
void |
start()
Start the RPC service.
|
appendEntries, installSnapshot, requestVotegetRpcTypevoid start()
throws IOException
IOExceptionInetSocketAddress getInetSocketAddress()
void handleException(RaftPeerId serverId, Exception e, boolean reconnect)
default void notifyNotLeader(RaftGroupId groupId)
Copyright © 2017–2020 The Apache Software Foundation. All rights reserved.