Class TaskId
- java.lang.Object
-
- org.apache.kafka.streams.processor.TaskId
-
-
Field Summary
Fields Modifier and Type Field Description intpartitionThe ID of the partition.inttopicGroupIdThe ID of the topic group.
-
Constructor Summary
Constructors Constructor Description TaskId(int topicGroupId, int partition)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TaskId other)booleanequals(java.lang.Object o)inthashCode()static TaskIdparse(java.lang.String taskIdStr)static TaskIdreadFrom(java.io.DataInputStream in)static TaskIdreadFrom(java.nio.ByteBuffer buf)java.lang.StringtoString()voidwriteTo(java.io.DataOutputStream out)voidwriteTo(java.nio.ByteBuffer buf)
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
parse
public static TaskId parse(java.lang.String taskIdStr)
- Throws:
TaskIdFormatException- if the taskIdStr is not a validTaskId
-
writeTo
public void writeTo(java.io.DataOutputStream out) throws java.io.IOException- Throws:
java.io.IOException- if cannot write to output stream
-
readFrom
public static TaskId readFrom(java.io.DataInputStream in) throws java.io.IOException
- Throws:
java.io.IOException- if cannot read from input stream
-
writeTo
public void writeTo(java.nio.ByteBuffer buf)
-
readFrom
public static TaskId readFrom(java.nio.ByteBuffer buf)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-