protected static class AbstractQuorum.E extends Object implements QuorumEvent
| Constructor and Description |
|---|
AbstractQuorum.E(QuorumEventEnum type,
long lastValidToken,
long token,
UUID serviceId)
Constructor used for most event types.
|
AbstractQuorum.E(QuorumEventEnum type,
long lastValidToken,
long token,
UUID serviceId,
long lastCommitTime)
Constructor used for vote events.
|
| Modifier and Type | Method and Description |
|---|---|
QuorumEventEnum |
getEventType()
The type of event and never
null. |
UUID |
getServiceId()
The service identifier associated with the event, if any.
|
long |
lastCommitTime()
The lastCommitTime for which a vote was cast.
|
long |
lastValidToken()
The lastValid token at the time of the event.
|
long |
token()
The current quorum token at the time the event was generated.
|
String |
toString() |
public AbstractQuorum.E(QuorumEventEnum type, long lastValidToken, long token, UUID serviceId)
type - token - serviceId - public AbstractQuorum.E(QuorumEventEnum type, long lastValidToken, long token, UUID serviceId, long lastCommitTime)
type - token - serviceId - lastCommitTime - public QuorumEventEnum getEventType()
QuorumEventnull.getEventType in interface QuorumEventpublic UUID getServiceId()
QuorumEventUUID
of that service.getServiceId in interface QuorumEventpublic long lastValidToken()
QuorumEventlastValidToken in interface QuorumEventpublic long token()
QuorumEventtoken in interface QuorumEventpublic long lastCommitTime()
QuorumEventlastCommitTime in interface QuorumEventCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.