Record Class KafkaClusterResponse.TopicSummary

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

@Introspected public static record KafkaClusterResponse.TopicSummary(String name, boolean internal, int partitions, int replicationFactor, boolean underReplicated, @Nullable String cleanupPolicy, @Nullable String retentionMs, @Nullable String retentionBytes, @Nullable String segmentBytes, Map<String,String> config) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    TopicSummary(String name, boolean internal, int partitions, int replicationFactor, boolean underReplicated, @Nullable String cleanupPolicy, @Nullable String retentionMs, @Nullable String retentionBytes, @Nullable String segmentBytes, Map<String,String> config)
    Creates an instance of a TopicSummary record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    Returns the value of the cleanupPolicy record component.
    Returns the value of the config record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the internal record component.
    Returns the value of the name record component.
    int
    Returns the value of the partitions record component.
    int
    Returns the value of the replicationFactor record component.
    @Nullable String
    Returns the value of the retentionBytes record component.
    @Nullable String
    Returns the value of the retentionMs record component.
    @Nullable String
    Returns the value of the segmentBytes record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the underReplicated record component.

    Methods inherited from class Object

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

    • TopicSummary

      public TopicSummary(String name, boolean internal, int partitions, int replicationFactor, boolean underReplicated, @Nullable String cleanupPolicy, @Nullable String retentionMs, @Nullable String retentionBytes, @Nullable String segmentBytes, Map<String,String> config)
      Creates an instance of a TopicSummary record class.
      Parameters:
      name - the value for the name record component
      internal - the value for the internal record component
      partitions - the value for the partitions record component
      replicationFactor - the value for the replicationFactor record component
      underReplicated - the value for the underReplicated record component
      cleanupPolicy - the value for the cleanupPolicy record component
      retentionMs - the value for the retentionMs record component
      retentionBytes - the value for the retentionBytes record component
      segmentBytes - the value for the segmentBytes 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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • internal

      public boolean internal()
      Returns the value of the internal record component.
      Returns:
      the value of the internal record component
    • partitions

      public int partitions()
      Returns the value of the partitions record component.
      Returns:
      the value of the partitions record component
    • replicationFactor

      public int replicationFactor()
      Returns the value of the replicationFactor record component.
      Returns:
      the value of the replicationFactor record component
    • underReplicated

      public boolean underReplicated()
      Returns the value of the underReplicated record component.
      Returns:
      the value of the underReplicated record component
    • cleanupPolicy

      public @Nullable String cleanupPolicy()
      Returns the value of the cleanupPolicy record component.
      Returns:
      the value of the cleanupPolicy record component
    • retentionMs

      public @Nullable String retentionMs()
      Returns the value of the retentionMs record component.
      Returns:
      the value of the retentionMs record component
    • retentionBytes

      public @Nullable String retentionBytes()
      Returns the value of the retentionBytes record component.
      Returns:
      the value of the retentionBytes record component
    • segmentBytes

      public @Nullable String segmentBytes()
      Returns the value of the segmentBytes record component.
      Returns:
      the value of the segmentBytes record component
    • config

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