public abstract class OperationEntry extends SessionEntry
Each state machine operation is stored with a client-provided sequence number.
The sequence number is used by state machines to apply client operations in the order in which they
were submitted by the client (FIFO order). Additionally, each operation is written with the leader's
timestamp at the time the entry was logged. This gives state machines an
approximation of time with which to react to the application of operations to the state machine.
| Constructor and Description |
|---|
OperationEntry(long term,
long timestamp,
long session,
long sequence,
RaftOperation operation) |
| Modifier and Type | Method and Description |
|---|---|
RaftOperation |
operation()
Returns the entry operation.
|
long |
sequenceNumber()
Returns the operation sequence number.
|
String |
toString() |
sessiontimestamptermpublic OperationEntry(long term,
long timestamp,
long session,
long sequence,
RaftOperation operation)
public RaftOperation operation()
public long sequenceNumber()
public String toString()
toString in class SessionEntryCopyright © 2013–2017. All rights reserved.