Package org.apache.kafka.clients.admin
Class QuorumInfo
java.lang.Object
org.apache.kafka.clients.admin.QuorumInfo
This class is used to describe the state of the quorum received in DescribeQuorumResponse.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
ConstructorsConstructorDescriptionQuorumInfo
(int leaderId, long leaderEpoch, long highWatermark, List<QuorumInfo.ReplicaState> voters, List<QuorumInfo.ReplicaState> observers, Map<Integer, QuorumInfo.Node> nodes) -
Method Summary
-
Constructor Details
-
QuorumInfo
public QuorumInfo(int leaderId, long leaderEpoch, long highWatermark, List<QuorumInfo.ReplicaState> voters, List<QuorumInfo.ReplicaState> observers, Map<Integer, QuorumInfo.Node> nodes)
-
-
Method Details
-
leaderId
public int leaderId() -
leaderEpoch
public long leaderEpoch() -
highWatermark
public long highWatermark() -
voters
-
observers
-
nodes
- Returns:
- The voter nodes in the Raft cluster, or an empty map if KIP-853 is not enabled.
-
equals
-
hashCode
public int hashCode() -
toString
-