Record Class KafkaClusterResponse.ConsumerGroupPartition
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaClusterResponse.ConsumerGroupPartition
- Enclosing class:
KafkaClusterResponse
-
Constructor Summary
ConstructorsConstructorDescriptionConsumerGroupPartition(String topic, int partition, boolean assigned, @Nullable Long committedOffset, @Nullable Long endOffset, @Nullable Long lag) Creates an instance of aConsumerGroupPartitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanassigned()Returns the value of theassignedrecord component.@Nullable LongReturns the value of thecommittedOffsetrecord component.@Nullable LongReturns the value of theendOffsetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Longlag()Returns the value of thelagrecord component.intReturns the value of thepartitionrecord component.topic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConsumerGroupPartition
public ConsumerGroupPartition(String topic, int partition, boolean assigned, @Nullable Long committedOffset, @Nullable Long endOffset, @Nullable Long lag) Creates an instance of aConsumerGroupPartitionrecord class.- Parameters:
topic- the value for thetopicrecord componentpartition- the value for thepartitionrecord componentassigned- the value for theassignedrecord componentcommittedOffset- the value for thecommittedOffsetrecord componentendOffset- the value for theendOffsetrecord componentlag- the value for thelagrecord 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. -
topic
Returns the value of thetopicrecord component.- Returns:
- the value of the
topicrecord component
-
partition
public int partition()Returns the value of thepartitionrecord component.- Returns:
- the value of the
partitionrecord component
-
assigned
public boolean assigned()Returns the value of theassignedrecord component.- Returns:
- the value of the
assignedrecord component
-
committedOffset
Returns the value of thecommittedOffsetrecord component.- Returns:
- the value of the
committedOffsetrecord component
-
endOffset
Returns the value of theendOffsetrecord component.- Returns:
- the value of the
endOffsetrecord component
-
lag
Returns the value of thelagrecord component.- Returns:
- the value of the
lagrecord component
-