Class TaskId
java.lang.Object
org.apache.kafka.streams.processor.TaskId
- All Implemented Interfaces:
Comparable<TaskId>
public class TaskId extends Object implements Comparable<TaskId>
The task ID representation composed as subtopology (aka topicGroupId) plus the assigned partition ID.
-
Field Summary
Fields Modifier and Type Field Description intpartitionDeprecated.inttopicGroupIdDeprecated. -
Constructor Summary
-
Method Summary
Modifier and Type Method Description intcompareTo(TaskId other)booleanequals(Object o)inthashCode()static TaskIdparse(String taskIdStr)intpartition()static 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 removedintsubtopology()StringtopologyName()Experimental feature -- will return nullStringtoString()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
-
topicGroupId
Deprecated.The ID of the subtopology, aka topicGroupId. -
partition
Deprecated.The ID of the partition.
-
-
Constructor Details
-
TaskId
public TaskId(int topicGroupId, int partition) -
TaskId
-
-
Method Details
-
subtopology
public int subtopology() -
partition
public int partition() -
topologyName
Experimental feature -- will return null -
toString
-
parse
- Throws:
TaskIdFormatException- if the taskIdStr is not a validTaskId
-
writeTo
Deprecated.since 3.0, for internal use, will be removed- Throws:
IOException- if cannot write to output stream
-
readFrom
Deprecated.since 3.0, for internal use, will be removed- Throws:
IOException- if cannot read from input stream
-
writeTo
Deprecated.since 3.0, for internal use, will be removed -
readFrom
Deprecated.since 3.0, for internal use, will be removed -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<TaskId>
-