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 int
partition
Deprecated.int
topicGroupId
Deprecated. -
Constructor Summary
-
Method Summary
Modifier and Type Method Description int
compareTo(TaskId other)
boolean
equals(Object o)
int
hashCode()
static TaskId
parse(String taskIdStr)
int
partition()
static TaskId
readFrom(DataInputStream in, int version)
Deprecated.since 3.0, for internal use, will be removedstatic TaskId
readFrom(ByteBuffer buf, int version)
Deprecated.since 3.0, for internal use, will be removedint
subtopology()
String
topologyName()
Experimental feature -- will return nullString
toString()
void
writeTo(DataOutputStream out, int version)
Deprecated.since 3.0, for internal use, will be removedvoid
writeTo(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:
compareTo
in interfaceComparable<TaskId>
-