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
ConstructorsConstructorDescriptionTopicSummary(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 aTopicSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thecleanupPolicyrecord component.config()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleaninternal()Returns the value of theinternalrecord component.name()Returns the value of thenamerecord component.intReturns the value of thepartitionsrecord component.intReturns the value of thereplicationFactorrecord component.@Nullable StringReturns the value of theretentionBytesrecord component.@Nullable StringReturns the value of theretentionMsrecord component.@Nullable StringReturns the value of thesegmentBytesrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theunderReplicatedrecord component.
-
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 aTopicSummaryrecord class.- Parameters:
name- the value for thenamerecord componentinternal- the value for theinternalrecord componentpartitions- the value for thepartitionsrecord componentreplicationFactor- the value for thereplicationFactorrecord componentunderReplicated- the value for theunderReplicatedrecord componentcleanupPolicy- the value for thecleanupPolicyrecord componentretentionMs- the value for theretentionMsrecord componentretentionBytes- the value for theretentionBytesrecord componentsegmentBytes- the value for thesegmentBytesrecord componentconfig- the value for theconfigrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
internal
public boolean internal()Returns the value of theinternalrecord component.- Returns:
- the value of the
internalrecord component
-
partitions
public int partitions()Returns the value of thepartitionsrecord component.- Returns:
- the value of the
partitionsrecord component
-
replicationFactor
public int replicationFactor()Returns the value of thereplicationFactorrecord component.- Returns:
- the value of the
replicationFactorrecord component
-
underReplicated
public boolean underReplicated()Returns the value of theunderReplicatedrecord component.- Returns:
- the value of the
underReplicatedrecord component
-
cleanupPolicy
Returns the value of thecleanupPolicyrecord component.- Returns:
- the value of the
cleanupPolicyrecord component
-
retentionMs
Returns the value of theretentionMsrecord component.- Returns:
- the value of the
retentionMsrecord component
-
retentionBytes
Returns the value of theretentionBytesrecord component.- Returns:
- the value of the
retentionBytesrecord component
-
segmentBytes
Returns the value of thesegmentBytesrecord component.- Returns:
- the value of the
segmentBytesrecord component
-
config
-