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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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:
-
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>
-