public class TransferLeadershipRequest extends RaftClientRequest
RaftClientRequest.Builder, RaftClientRequest.Type| 构造器和说明 |
|---|
TransferLeadershipRequest(ClientId clientId,
RaftPeerId serverId,
RaftGroupId groupId,
long callId,
RaftPeerId newLeader,
long timeoutMs) |
| 限定符和类型 | 方法和说明 |
|---|---|
RaftPeerId |
getNewLeader() |
dataStreamRequestType, forwardRequestType, getMessage, getRoutingTable, getSlidingWindowEntry, getTimeoutMs, getType, is, isRequest, messageStreamRequestType, newBuilder, readRequestType, staleReadRequestType, toString, toWriteRequest, watchRequestType, watchRequestType, writeRequestTypegetCallId, getClientId, getRaftGroupId, getReplierId, getRequestorId, getServerIdpublic TransferLeadershipRequest(ClientId clientId, RaftPeerId serverId, RaftGroupId groupId, long callId, RaftPeerId newLeader, long timeoutMs)
public RaftPeerId getNewLeader()
Copyright © 2017–2021 The Apache Software Foundation. All rights reserved.