Class ConsensusControlState

java.lang.Object
io.aeron.cluster.ConsensusControlState

public final class ConsensusControlState extends Object
The state needed to allow control of the consensus module.

This is a record object being passed to external entities.

See Also:
  • Method Details

    • isLeader

      public boolean isLeader()
      Returns:
      true iff we are the leader (and have the log publication).
    • logPublication

      public ExclusivePublication 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

      public Subscription leaderLogSubscription()
      Returns:
      a subscription to the log, joined at the log position of the election for a leader node, or null for a follower.