Class TaskId
java.lang.Object
org.apache.kafka.streams.processor.TaskId
- All Implemented Interfaces:
- Comparable<TaskId>
The task ID representation composed as subtopology (aka topicGroupId) plus the assigned partition ID.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintbooleaninthashCode()static TaskIdintstatic TaskIdreadFrom(DataInputStream in, int version) Deprecated.since 3.0, for internal use, will be removedstatic TaskIdreadFrom(ByteBuffer buf, int version) Deprecated.since 3.0, for internal use, will be removedintExperimental feature -- will return nulltoString()voidwriteTo(DataOutputStream out, int version) Deprecated.since 3.0, for internal use, will be removedvoidwriteTo(ByteBuffer buf, int version) Deprecated.since 3.0, for internal use, will be removed
- 
Field Details- 
NAMED_TOPOLOGY_DELIMITER- See Also:
 
- 
topicGroupIdDeprecated.The ID of the subtopology, aka topicGroupId.
- 
partitionDeprecated.The ID of the partition.
 
- 
- 
Constructor Details- 
TaskIdpublic TaskId(int topicGroupId, int partition) 
- 
TaskId
 
- 
- 
Method Details- 
subtopologypublic int subtopology()
- 
partitionpublic int partition()
- 
topologyNameExperimental feature -- will return null
- 
toString
- 
parse- Throws:
- TaskIdFormatException- if the taskIdStr is not a valid- TaskId
 
- 
writeToDeprecated.since 3.0, for internal use, will be removed- Throws:
- IOException- if cannot write to output stream
 
- 
readFromDeprecated.since 3.0, for internal use, will be removed- Throws:
- IOException- if cannot read from input stream
 
- 
writeToDeprecated.since 3.0, for internal use, will be removed
- 
readFromDeprecated.since 3.0, for internal use, will be removed
- 
equals
- 
hashCodepublic int hashCode()
- 
compareTo- Specified by:
- compareToin interface- Comparable<TaskId>
 
 
-