Record Class KafkaClusterResponse.Overview

java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaClusterResponse.Overview
Enclosing class:
KafkaClusterResponse

@Introspected public static record KafkaClusterResponse.Overview(@Nullable String clusterId, @Nullable KafkaClusterResponse.BrokerNode controller, int brokerCount, int topicCount, int partitionCount, int consumerGroupCount, Map<String,String> config) extends Record
  • Constructor Details

    • Overview

      public Overview(@Nullable String clusterId, @Nullable KafkaClusterResponse.BrokerNode controller, int brokerCount, int topicCount, int partitionCount, int consumerGroupCount, Map<String,String> config)
      Creates an instance of a Overview record class.
      Parameters:
      clusterId - the value for the clusterId record component
      controller - the value for the controller record component
      brokerCount - the value for the brokerCount record component
      topicCount - the value for the topicCount record component
      partitionCount - the value for the partitionCount record component
      consumerGroupCount - the value for the consumerGroupCount record component
      config - the value for the config record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • clusterId

      public @Nullable String clusterId()
      Returns the value of the clusterId record component.
      Returns:
      the value of the clusterId record component
    • controller

      public @Nullable KafkaClusterResponse.BrokerNode controller()
      Returns the value of the controller record component.
      Returns:
      the value of the controller record component
    • brokerCount

      public int brokerCount()
      Returns the value of the brokerCount record component.
      Returns:
      the value of the brokerCount record component
    • topicCount

      public int topicCount()
      Returns the value of the topicCount record component.
      Returns:
      the value of the topicCount record component
    • partitionCount

      public int partitionCount()
      Returns the value of the partitionCount record component.
      Returns:
      the value of the partitionCount record component
    • consumerGroupCount

      public int consumerGroupCount()
      Returns the value of the consumerGroupCount record component.
      Returns:
      the value of the consumerGroupCount record component
    • config

      public Map<String,String> config()
      Returns the value of the config record component.
      Returns:
      the value of the config record component