Class ClusterResource


  • public class ClusterResource
    extends Object
    The ClusterResource class encapsulates metadata for a Kafka cluster.
    • Constructor Detail

      • ClusterResource

        public ClusterResource​(String clusterId)
        Create ClusterResource with a cluster id. Note that cluster id may be null if 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 -
    • Method Detail

      • clusterId

        public String clusterId()
        Return the cluster id. Note that it may be null if 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object