Record Class KafkaStreamsRuntimeState.ThreadState
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaStreamsRuntimeState.ThreadState
- Record Components:
name- stream thread namestate- stream thread stateadminClientId- admin client identifierconsumerClientId- consumer client identifierrestoreConsumerClientId- restore consumer client identifierproducerClientIds- producer client identifiershasProducerClientIds- whether producer client identifiers are presentactiveTasks- active task summarystandbyTasks- standby task summary
- Enclosing class:
KafkaStreamsRuntimeState
public static record KafkaStreamsRuntimeState.ThreadState(String name, String state, String adminClientId, String consumerClientId, String restoreConsumerClientId, List<String> producerClientIds, boolean hasProducerClientIds, KafkaStreamsRuntimeState.TaskSummary activeTasks, KafkaStreamsRuntimeState.TaskSummary standbyTasks)
extends Record
Runtime state for one Kafka Streams thread.
-
Constructor Summary
ConstructorsConstructorDescriptionThreadState(String name, String state, String adminClientId, String consumerClientId, String restoreConsumerClientId, List<String> producerClientIds, boolean hasProducerClientIds, KafkaStreamsRuntimeState.TaskSummary activeTasks, KafkaStreamsRuntimeState.TaskSummary standbyTasks) Creates an instance of aThreadStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactiveTasksrecord component.Returns the value of theadminClientIdrecord component.Returns the value of theconsumerClientIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasProducerClientIdsrecord component.name()Returns the value of thenamerecord component.Returns the value of theproducerClientIdsrecord component.Returns the value of therestoreConsumerClientIdrecord component.Returns the value of thestandbyTasksrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ThreadState
public ThreadState(String name, String state, String adminClientId, String consumerClientId, String restoreConsumerClientId, List<String> producerClientIds, boolean hasProducerClientIds, KafkaStreamsRuntimeState.TaskSummary activeTasks, KafkaStreamsRuntimeState.TaskSummary standbyTasks) Creates an instance of aThreadStaterecord class.- Parameters:
name- the value for thenamerecord componentstate- the value for thestaterecord componentadminClientId- the value for theadminClientIdrecord componentconsumerClientId- the value for theconsumerClientIdrecord componentrestoreConsumerClientId- the value for therestoreConsumerClientIdrecord componentproducerClientIds- the value for theproducerClientIdsrecord componenthasProducerClientIds- the value for thehasProducerClientIdsrecord componentactiveTasks- the value for theactiveTasksrecord componentstandbyTasks- the value for thestandbyTasksrecord component
-
-
Method Details
-
stateBadgeClass
- Returns:
- badge class for the stream thread state
-
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
-
state
-
adminClientId
Returns the value of theadminClientIdrecord component.- Returns:
- the value of the
adminClientIdrecord component
-
consumerClientId
Returns the value of theconsumerClientIdrecord component.- Returns:
- the value of the
consumerClientIdrecord component
-
restoreConsumerClientId
Returns the value of therestoreConsumerClientIdrecord component.- Returns:
- the value of the
restoreConsumerClientIdrecord component
-
producerClientIds
Returns the value of theproducerClientIdsrecord component.- Returns:
- the value of the
producerClientIdsrecord component
-
hasProducerClientIds
public boolean hasProducerClientIds()Returns the value of thehasProducerClientIdsrecord component.- Returns:
- the value of the
hasProducerClientIdsrecord component
-
activeTasks
Returns the value of theactiveTasksrecord component.- Returns:
- the value of the
activeTasksrecord component
-
standbyTasks
Returns the value of thestandbyTasksrecord component.- Returns:
- the value of the
standbyTasksrecord component
-