public class CommandResponse extends OperationResponse
Command responses are sent by servers to clients upon the completion of a
CommandRequest. Command responses are sent with the
OperationResponse.index() (or index) of the state machine at the point at which the command was evaluated.
This can be used by the client to ensure it sees state progress monotonically. Note, however, that
command responses may not be sent or received in sequential order. If a command response has to await
the completion of an event, or if the response is proxied through another server, responses may be
received out of order. Clients should resequence concurrent responses to ensure they're handled in FIFO order.
| Modifier and Type | Class and Description |
|---|---|
static class |
CommandResponse.Builder
Command response builder.
|
RaftResponse.Status| Constructor and Description |
|---|
CommandResponse(RaftResponse.Status status,
RaftError error,
long index,
long eventIndex,
byte[] result,
long lastSequence) |
| Modifier and Type | Method and Description |
|---|---|
static CommandResponse.Builder |
newBuilder()
Returns a new submit response builder.
|
equals, eventIndex, hashCode, index, lastSequenceNumber, result, toStringerror, statuspublic CommandResponse(RaftResponse.Status status, RaftError error, long index, long eventIndex, byte[] result, long lastSequence)
public static CommandResponse.Builder newBuilder()
Copyright © 2013–2017. All rights reserved.