Package org.apache.kafka.streams
Interface ThreadMetadata
public interface ThreadMetadata
Metadata of a stream thread.
-
Method Summary
Modifier and TypeMethodDescriptionMetadata of the active tasks assigned to the stream thread.Client ID of the admin client used by the stream thread.Client ID of the Kafka consumer used by the stream thread.boolean
Compares the specified object with this ThreadMetadata.int
hashCode()
Returns the hash code value for this ThreadMetadata.Client IDs of the Kafka producers used by the stream thread.Client ID of the restore Kafka consumer used by the stream threadMetadata of the standby tasks assigned to the stream thread.Name of the stream threadState of the stream thread
-
Method Details
-
threadState
String threadState()State of the stream thread- Returns:
- the state
-
threadName
String threadName()Name of the stream thread- Returns:
- the name
-
activeTasks
Set<TaskMetadata> activeTasks()Metadata of the active tasks assigned to the stream thread.- Returns:
- metadata of the active tasks
-
standbyTasks
Set<TaskMetadata> standbyTasks()Metadata of the standby tasks assigned to the stream thread.- Returns:
- metadata of the standby tasks
-
consumerClientId
String consumerClientId()Client ID of the Kafka consumer used by the stream thread.- Returns:
- client ID of the Kafka consumer
-
restoreConsumerClientId
String restoreConsumerClientId()Client ID of the restore Kafka consumer used by the stream thread- Returns:
- client ID of the restore Kafka consumer
-
producerClientIds
Client IDs of the Kafka producers used by the stream thread.- Returns:
- client IDs of the Kafka producers
-
adminClientId
String adminClientId()Client ID of the admin client used by the stream thread.- Returns:
- client ID of the admin client
-
equals
Compares the specified object with this ThreadMetadata. Returnstrue
if and only if the specified object is also a ThreadMetadata and boththreadName()
are equal,threadState()
are equal,activeTasks()
contain the same elements,standbyTasks()
contain the same elements,mainConsumerClientId()
are equal,restoreConsumerClientId()
are equal,producerClientIds()
are equal,producerClientIds
contain the same elements, andadminClientId()
are equal. -
hashCode
int hashCode()Returns the hash code value for this ThreadMetadata. The hash code of a list is defined to be the result of the following calculation:Objects.hash( threadName, threadState, activeTasks, standbyTasks, mainConsumerClientId, restoreConsumerClientId, producerClientIds, adminClientId );
-