Record Class KafkaStreamsRuntimeState
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaStreamsRuntimeState
- Record Components:
available- whether runtime details are visible through Healthstatus- health status for the Kafka Streams applicationmessage- optional runtime-state messagethreads- stream thread runtime detailshasThreads- whether stream thread details are present
@Internal
public record KafkaStreamsRuntimeState(boolean available, String status, String message, List<KafkaStreamsRuntimeState.ThreadState> threads, boolean hasThreads)
extends Record
Runtime state exposed by Micronaut Health for a Kafka Streams application.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordSummary of a Kafka Streams task set.static final recordRuntime state for one Kafka Streams thread. -
Constructor Summary
ConstructorsConstructorDescriptionKafkaStreamsRuntimeState(boolean available, String status, String message, List<KafkaStreamsRuntimeState.ThreadState> threads, boolean hasThreads) Creates an instance of aKafkaStreamsRuntimeStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theavailablerecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasThreadsrecord component.message()Returns the value of themessagerecord component.status()Returns the value of thestatusrecord component.threads()Returns the value of thethreadsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KafkaStreamsRuntimeState
public KafkaStreamsRuntimeState(boolean available, String status, String message, List<KafkaStreamsRuntimeState.ThreadState> threads, boolean hasThreads) Creates an instance of aKafkaStreamsRuntimeStaterecord class.- Parameters:
available- the value for theavailablerecord componentstatus- the value for thestatusrecord componentmessage- the value for themessagerecord componentthreads- the value for thethreadsrecord componenthasThreads- the value for thehasThreadsrecord component
-
-
Method Details
-
statusBadgeClass
- Returns:
- badge class for the overall runtime status
-
sectionStateClass
- Returns:
- state class for runtime section rendering
-
errorState
public boolean errorState()- Returns:
- whether Health reports a non-healthy status for this Kafka Streams application
-
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. -
available
-
status
-
message
-
threads
-
hasThreads
public boolean hasThreads()Returns the value of thehasThreadsrecord component.- Returns:
- the value of the
hasThreadsrecord component
-