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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
hashCode()
static TaskId
int
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
Experimental feature -- will return nulltoString()
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
-
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:
compareTo
in interfaceComparable<TaskId>
-