public class RaftClientRequest extends RaftClientMessage
| 限定符和类型 | 类和说明 |
|---|---|
static class |
RaftClientRequest.Builder
To build
RaftClientRequest |
static class |
RaftClientRequest.Type
The type of a request (oneof write, read, staleRead, watch; see the message RaftClientRequestProto).
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
RaftClientRequest(ClientId clientId,
RaftPeerId serverId,
RaftGroupId groupId,
long callId,
boolean toLeader,
RaftClientRequest.Type type) |
protected |
RaftClientRequest(ClientId clientId,
RaftPeerId serverId,
RaftGroupId groupId,
long callId,
RaftClientRequest.Type type,
long timeoutMs) |
getCallId, getClientId, getRaftGroupId, getReplierId, getRequestorId, getServerIdprotected RaftClientRequest(ClientId clientId, RaftPeerId serverId, RaftGroupId groupId, long callId, boolean toLeader, RaftClientRequest.Type type)
protected RaftClientRequest(ClientId clientId, RaftPeerId serverId, RaftGroupId groupId, long callId, RaftClientRequest.Type type, long timeoutMs)
public static RaftClientRequest.Type writeRequestType()
public static RaftClientRequest.Type dataStreamRequestType()
public static RaftClientRequest.Type forwardRequestType()
public static RaftClientRequest.Type messageStreamRequestType(long streamId, long messageId, boolean endOfRequest)
public static RaftClientRequest.Type readRequestType()
public static RaftClientRequest.Type readRequestType(boolean nonLinearizable)
public static RaftClientRequest.Type staleReadRequestType(long minIndex)
public static RaftClientRequest.Type watchRequestType()
public static RaftClientRequest.Type watchRequestType(long index, org.apache.ratis.proto.RaftProtos.ReplicationLevel replication)
public static RaftClientRequest.Builder newBuilder()
public static RaftClientRequest toWriteRequest(RaftClientRequest r, Message message)
public final boolean isRequest()
public boolean isToLeader()
public org.apache.ratis.proto.RaftProtos.SlidingWindowEntry getSlidingWindowEntry()
public Message getMessage()
public RaftClientRequest.Type getType()
public boolean is(org.apache.ratis.proto.RaftProtos.RaftClientRequestProto.TypeCase typeCase)
public RoutingTable getRoutingTable()
public long getTimeoutMs()
public String toString()
toString 在类中 RaftClientMessageCopyright © 2017–2023 The Apache Software Foundation. All rights reserved.