public class TaskId extends Object implements Comparable<TaskId>
Modifier and Type | Field and Description |
---|---|
static String |
NAMED_TOPOLOGY_DELIMITER |
int |
partition
Deprecated.
|
int |
topicGroupId
Deprecated.
|
Constructor and Description |
---|
TaskId(int topicGroupId,
int partition) |
TaskId(int topicGroupId,
int partition,
String topologyName) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TaskId other) |
boolean |
equals(Object o) |
int |
hashCode() |
static TaskId |
parse(String taskIdStr) |
int |
partition() |
static TaskId |
readFrom(ByteBuffer buf,
int version)
Deprecated.
since 3.0, for internal use, will be removed
|
static TaskId |
readFrom(DataInputStream in,
int version)
Deprecated.
since 3.0, for internal use, will be removed
|
int |
subtopology() |
String |
topologyName()
Experimental feature -- will return null
|
String |
toString() |
void |
writeTo(ByteBuffer buf,
int version)
Deprecated.
since 3.0, for internal use, will be removed
|
void |
writeTo(DataOutputStream out,
int version)
Deprecated.
since 3.0, for internal use, will be removed
|
public static final String NAMED_TOPOLOGY_DELIMITER
@Deprecated public final int topicGroupId
@Deprecated public final int partition
public TaskId(int topicGroupId, int partition)
public TaskId(int topicGroupId, int partition, String topologyName)
public int subtopology()
public int partition()
public String topologyName()
public static TaskId parse(String taskIdStr)
TaskIdFormatException
- if the taskIdStr is not a valid TaskId
@Deprecated public void writeTo(DataOutputStream out, int version) throws IOException
IOException
- if cannot write to output stream@Deprecated public static TaskId readFrom(DataInputStream in, int version) throws IOException
IOException
- if cannot read from input stream@Deprecated public void writeTo(ByteBuffer buf, int version)
@Deprecated public static TaskId readFrom(ByteBuffer buf, int version)
public int compareTo(TaskId other)
compareTo
in interface Comparable<TaskId>