public class RaftClientRequest extends RaftClientMessage
| Modifier and Type | Class and Description |
|---|---|
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).
|
| Modifier | Constructor and Description |
|---|---|
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 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 in class RaftClientMessageCopyright © 2017–2022 The Apache Software Foundation. All rights reserved.