public class QueryResponse extends OperationResponse
Query responses are sent by servers to clients upon the completion of a
QueryRequest. Query responses are sent with the
OperationResponse.index() of the state machine at the point at which the query was evaluated.
This can be used by the client to ensure it sees state progress monotonically. Note, however, that
query responses may not be sent or received in sequential order. If a query 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 |
QueryResponse.Builder
Query response builder.
|
RaftResponse.Status| Constructor and Description |
|---|
QueryResponse(RaftResponse.Status status,
RaftError error,
long index,
long eventIndex,
byte[] result,
long lastSequence) |
| Modifier and Type | Method and Description |
|---|---|
static QueryResponse.Builder |
newBuilder()
Returns a new query response builder.
|
equals, eventIndex, hashCode, index, lastSequenceNumber, result, toStringerror, statuspublic QueryResponse(RaftResponse.Status status, RaftError error, long index, long eventIndex, byte[] result, long lastSequence)
public static QueryResponse.Builder newBuilder()
Copyright © 2013–2017. All rights reserved.