Record Class KafkaClusterResponse.AppConsumerAssignment
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaClusterResponse.AppConsumerAssignment
- Enclosing class:
KafkaClusterResponse
-
Constructor Summary
ConstructorsConstructorDescriptionAppConsumerAssignment(String topic, int partition, boolean paused) Creates an instance of aAppConsumerAssignmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thepartitionrecord component.booleanpaused()Returns the value of thepausedrecord component.topic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AppConsumerAssignment
Creates an instance of aAppConsumerAssignmentrecord class.- Parameters:
topic- the value for thetopicrecord componentpartition- the value for thepartitionrecord componentpaused- the value for thepausedrecord 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
-
paused
public boolean paused()Returns the value of thepausedrecord component.- Returns:
- the value of the
pausedrecord component
-