public abstract class OperationRequest extends SessionRequest
Operation requests are sent by clients to servers to execute operations on the replicated state
machine. Each operation request must be sequenced with a sequenceNumber() number. All operations
will be applied to replicated state machines in the sequence in which they were sent by the client.
Sequence numbers must always be sequential, and in the event that an operation request fails, it must
be resent by the client.
| Modifier and Type | Class and Description |
|---|---|
static class |
OperationRequest.Builder<T extends OperationRequest.Builder<T,U>,U extends OperationRequest>
Operation request builder.
|
| Modifier and Type | Method and Description |
|---|---|
RaftOperation |
operation()
Returns the operation.
|
long |
sequenceNumber()
Returns the request sequence number.
|
equals, hashCode, session, toStringpublic long sequenceNumber()
public RaftOperation operation()
Copyright © 2013–2017. All rights reserved.