Record Class KafkaClusterResponse.AppConsumer
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaClusterResponse.AppConsumer
- Enclosing class:
KafkaClusterResponse
-
Constructor Summary
ConstructorsConstructorDescriptionAppConsumer(String id, List<String> subscriptions, List<KafkaClusterResponse.AppConsumerAssignment> assignments, boolean paused) Creates an instance of aAppConsumerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassignmentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanpaused()Returns the value of thepausedrecord component.Returns the value of thesubscriptionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AppConsumer
public AppConsumer(String id, List<String> subscriptions, List<KafkaClusterResponse.AppConsumerAssignment> assignments, boolean paused) Creates an instance of aAppConsumerrecord class.- Parameters:
id- the value for theidrecord componentsubscriptions- the value for thesubscriptionsrecord componentassignments- the value for theassignmentsrecord 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. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
subscriptions
-
assignments
Returns the value of theassignmentsrecord component.- Returns:
- the value of the
assignmentsrecord component
-
paused
public boolean paused()Returns the value of thepausedrecord component.- Returns:
- the value of the
pausedrecord component
-