Package org.apache.kafka.common
Class PartitionInfo
java.lang.Object
org.apache.kafka.common.PartitionInfo
This is used to describe per-partition state in the MetadataResponse.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleaninthashCode()Node[]The subset of the replicas that are in sync, that is caught-up to the leader and ready to take over as leader if the leader should failleader()The node id of the node currently acting as a leader for this partition or null if there is no leaderNode[]The subset of the replicas that are offlineintThe partition idNode[]replicas()The complete set of replicas for this partition regardless of whether they are alive or up-to-datetopic()The topic nametoString()
- 
Constructor Details- 
PartitionInfo
- 
PartitionInfo
 
- 
- 
Method Details- 
topicThe topic name
- 
partitionpublic int partition()The partition id
- 
leaderThe node id of the node currently acting as a leader for this partition or null if there is no leader
- 
replicasThe complete set of replicas for this partition regardless of whether they are alive or up-to-date
- 
inSyncReplicasThe subset of the replicas that are in sync, that is caught-up to the leader and ready to take over as leader if the leader should fail
- 
offlineReplicasThe subset of the replicas that are offline
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
 
-