public class QCE extends Object implements QuorumStateChangeEvent
Constructor and Description |
---|
QCE(QuorumStateChangeEventEnum eventType) |
QCE(QuorumStateChangeEventEnum eventType,
UUID[] downstreamOldAndNew,
Long lastCommitTimeConsensus,
Long token,
UUID leaderId) |
Modifier and Type | Method and Description |
---|---|
UUID[] |
getDownstreamOldAndNew()
Return the old and new downstream
UUID s. |
QuorumStateChangeEventEnum |
getEventType()
The type of event and never
null . |
long |
getLastCommitTimeConsensus()
The last commit time consensus.
|
UUID |
getLeaderId()
Return the
UUID of the quorum leader. |
long |
getToken()
Return the token on which the quorum met.
|
String |
toString() |
public QCE(QuorumStateChangeEventEnum eventType)
public QCE(QuorumStateChangeEventEnum eventType, UUID[] downstreamOldAndNew, Long lastCommitTimeConsensus, Long token, UUID leaderId)
public QuorumStateChangeEventEnum getEventType()
QuorumStateChangeEvent
null
.getEventType
in interface QuorumStateChangeEvent
public UUID[] getDownstreamOldAndNew()
QuorumStateChangeEvent
UUID
s.getDownstreamOldAndNew
in interface QuorumStateChangeEvent
UUID
. [1] is the new downstream service UUID
.QuorumStateChangeListener.pipelineChange(UUID, UUID)
public long getLastCommitTimeConsensus()
QuorumStateChangeEvent
getLastCommitTimeConsensus
in interface QuorumStateChangeEvent
QuorumStateChangeListener.consensus(long)
public long getToken()
QuorumStateChangeEvent
getToken
in interface QuorumStateChangeEvent
QuorumStateChangeListener.quorumMeet(long, UUID)
public UUID getLeaderId()
QuorumStateChangeEvent
UUID
of the quorum leader.getLeaderId
in interface QuorumStateChangeEvent
UUID
of the quorum leader.QuorumStateChangeListener.quorumMeet(long, UUID)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.