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()
QuorumEvent
null
.getEventType
in interface QuorumEvent
public UUID getServiceId()
QuorumEvent
UUID
of that service.getServiceId
in interface QuorumEvent
public long lastValidToken()
QuorumEvent
lastValidToken
in interface QuorumEvent
public long token()
QuorumEvent
token
in interface QuorumEvent
public long lastCommitTime()
QuorumEvent
lastCommitTime
in interface QuorumEvent
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.