Class ClusterResource


  • public class ClusterResource
    extends java.lang.Object
    The ClusterResource class encapsulates metadata for a Kafka cluster.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String clusterId()
      Return the cluster id.
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ClusterResource

        public ClusterResource​(java.lang.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 java.lang.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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object