public interface RaftServerRpc extends RaftServerProtocol, ServerRpc, RpcType.Get, RaftPeer.Add, Closeable
RaftServerProtocol.Op| 限定符和类型 | 方法和说明 |
|---|---|
default RaftServerAsynchronousProtocol |
async() |
default InetSocketAddress |
getAdminServerAddress() |
default InetSocketAddress |
getClientServerAddress() |
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.
|
appendEntries, installSnapshot, requestVote, startLeaderElectiongetInetSocketAddress, startgetRpcTypeaddRaftPeers, addRaftPeersdefault InetSocketAddress getClientServerAddress()
default InetSocketAddress getAdminServerAddress()
void handleException(RaftPeerId serverId, Exception e, boolean reconnect)
default void notifyNotLeader(RaftGroupId groupId)
default RaftServerAsynchronousProtocol async()
Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.