Record Class KafkaClusterResponse.ConsumerGroupSummary
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaClusterResponse.ConsumerGroupSummary
- Enclosing class:
KafkaClusterResponse
-
Constructor Summary
ConstructorsConstructorDescriptionConsumerGroupSummary(String groupId, String state, String protocol, int members, int assignedPartitions, int committedPartitions, @Nullable Long totalLag) Creates an instance of aConsumerGroupSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theassignedPartitionsrecord component.intReturns the value of thecommittedPartitionsrecord component.final booleanIndicates whether some other object is "equal to" this one.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.intmembers()Returns the value of themembersrecord component.protocol()Returns the value of theprotocolrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.@Nullable LongtotalLag()Returns the value of thetotalLagrecord component.
-
Constructor Details
-
ConsumerGroupSummary
public ConsumerGroupSummary(String groupId, String state, String protocol, int members, int assignedPartitions, int committedPartitions, @Nullable Long totalLag) Creates an instance of aConsumerGroupSummaryrecord class.- Parameters:
groupId- the value for thegroupIdrecord componentstate- the value for thestaterecord componentprotocol- the value for theprotocolrecord componentmembers- the value for themembersrecord componentassignedPartitions- the value for theassignedPartitionsrecord componentcommittedPartitions- the value for thecommittedPartitionsrecord componenttotalLag- the value for thetotalLagrecord 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. -
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
protocol
Returns the value of theprotocolrecord component.- Returns:
- the value of the
protocolrecord component
-
members
public int members()Returns the value of themembersrecord component.- Returns:
- the value of the
membersrecord component
-
assignedPartitions
public int assignedPartitions()Returns the value of theassignedPartitionsrecord component.- Returns:
- the value of the
assignedPartitionsrecord component
-
committedPartitions
public int committedPartitions()Returns the value of thecommittedPartitionsrecord component.- Returns:
- the value of the
committedPartitionsrecord component
-
totalLag
Returns the value of thetotalLagrecord component.- Returns:
- the value of the
totalLagrecord component
-