Package io.aeron.cluster
Class ConsensusControlState
java.lang.Object
io.aeron.cluster.ConsensusControlState
The state needed to allow control of the consensus module.
This is a record object being passed to external entities.
- See Also:
-
Method Summary
-
Method Details
-
isLeader
public boolean isLeader()- Returns:
- true iff we are the leader (and have the log publication).
-
logPublication
- Returns:
- log publication or null if follower.
-
logRecordingId
public long logRecordingId()- Returns:
- log recording id.
-
leadershipTermId
public long leadershipTermId()- Returns:
- leadership term id.
-
leaderLogSubscription
- Returns:
- a subscription to the log, joined at the log position of the election for a leader node, or null for a follower.
-