public interface ServiceContext
| Modifier and Type | Method and Description |
|---|---|
long |
currentIndex()
Returns the current state machine index.
|
OperationType |
currentOperation()
Returns the current operation type.
|
Session |
currentSession()
Returns the current session.
|
io.atomix.utils.time.LogicalClock |
logicalClock()
Returns the state machine's logical clock.
|
PrimitiveId |
serviceId()
Returns the state machine identifier.
|
String |
serviceName()
Returns the state machine name.
|
PrimitiveType |
serviceType()
Returns the state machine type.
|
Sessions |
sessions()
Returns the state machine sessions.
|
io.atomix.utils.time.WallClock |
wallClock()
Returns the state machine's wall clock.
|
PrimitiveId serviceId()
String serviceName()
PrimitiveType serviceType()
long currentIndex()
The state index is indicative of the index of the current operation being applied to the server state machine. If a query is being applied, the index of the last command applied will be used.
Session currentSession()
OperationType currentOperation()
io.atomix.utils.time.LogicalClock logicalClock()
io.atomix.utils.time.WallClock wallClock()
Sessions sessions()
Copyright © 2013–2018. All rights reserved.