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 topic group ID plus the assigned partition ID.
- 
- 
Field SummaryFields Modifier and Type Field Description intpartitionThe ID of the partition.inttopicGroupIdThe ID of the topic group.
 - 
Constructor SummaryConstructors Constructor Description TaskId(int topicGroupId, int partition)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TaskId other)booleanequals(Object o)inthashCode()static TaskIdparse(String taskIdStr)static TaskIdreadFrom(DataInputStream in)static TaskIdreadFrom(ByteBuffer buf)StringtoString()voidwriteTo(DataOutputStream out)voidwriteTo(ByteBuffer buf)
 
- 
- 
- 
Method Detail- 
parsepublic static TaskId parse(String taskIdStr) - Throws:
- TaskIdFormatException- if the taskIdStr is not a valid- TaskId
 
 - 
writeTopublic void writeTo(DataOutputStream out) throws IOException - Throws:
- IOException- if cannot write to output stream
 
 - 
readFrompublic static TaskId readFrom(DataInputStream in) throws IOException - Throws:
- IOException- if cannot read from input stream
 
 - 
writeTopublic void writeTo(ByteBuffer buf) 
 - 
readFrompublic static TaskId readFrom(ByteBuffer buf) 
 - 
compareTopublic int compareTo(TaskId other) - Specified by:
- compareToin interface- Comparable<TaskId>
 
 
- 
 
-