public interface RaftClientRpc extends RaftPeer.Add, Closeable
| 限定符和类型 | 方法和说明 |
|---|---|
default boolean |
handleException(RaftPeerId serverId,
Throwable t,
boolean reconnect)
Handle the given throwable.
|
RaftClientReply |
sendRequest(RaftClientRequest request)
Send a request.
|
default CompletableFuture<RaftClientReply> |
sendRequestAsync(RaftClientRequest request)
Async call to send a request.
|
default CompletableFuture<RaftClientReply> |
sendRequestAsyncUnordered(RaftClientRequest request)
Async call to send a request.
|
default boolean |
shouldReconnect(Throwable t)
Determine if the given throwable should be handled.
|
addRaftPeers, addRaftPeersdefault CompletableFuture<RaftClientReply> sendRequestAsync(RaftClientRequest request)
default CompletableFuture<RaftClientReply> sendRequestAsyncUnordered(RaftClientRequest request)
RaftClientReply sendRequest(RaftClientRequest request) throws IOException
IOExceptiondefault boolean handleException(RaftPeerId serverId, Throwable t, boolean reconnect)
default boolean shouldReconnect(Throwable t)
Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.