public class TaskId extends Object implements Comparable<TaskId>
| Modifier and Type | Field and Description |
|---|---|
int |
partition
The ID of the partition.
|
int |
topicGroupId
The ID of the topic group.
|
| Constructor and Description |
|---|
TaskId(int topicGroupId,
int partition) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TaskId other) |
boolean |
equals(Object o) |
int |
hashCode() |
static TaskId |
parse(String string) |
static TaskId |
readFrom(ByteBuffer buf) |
static TaskId |
readFrom(DataInputStream in) |
String |
toString() |
void |
writeTo(ByteBuffer buf) |
void |
writeTo(DataOutputStream out) |
public final int topicGroupId
public final int partition
public static TaskId parse(String string)
TaskIdFormatException - if the string is not a valid TaskIdpublic void writeTo(DataOutputStream out) throws IOException
IOException - if cannot write to output streampublic static TaskId readFrom(DataInputStream in) throws IOException
IOException - if cannot read from input streampublic void writeTo(ByteBuffer buf)
public static TaskId readFrom(ByteBuffer buf)
public int compareTo(TaskId other)
compareTo in interface Comparable<TaskId>