Package org.apache.kafka.common
Class ClusterResource
java.lang.Object
org.apache.kafka.common.ClusterResource
The 
ClusterResource class encapsulates metadata for a Kafka cluster.- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
ClusterResourceCreateClusterResourcewith a cluster id. Note that cluster id may benullif the metadata request was sent to a broker without support for cluster ids. The first version of Kafka to support cluster id is 0.10.1.0.- Parameters:
- clusterId- The cluster id
 
 
- 
- 
Method Details- 
clusterIdReturn the cluster id. Note that it may benullif the metadata request was sent to a broker without support for cluster ids. The first version of Kafka to support cluster id is 0.10.1.0.
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
 
-