(String nodeId, long id)
| 40 | private final long id; |
| 41 | |
| 42 | public TaskId(String nodeId, long id) { |
| 43 | if (nodeId.isEmpty()) { |
| 44 | throw new IllegalArgumentException("0 length nodeIds are reserved for EMPTY_TASK_ID and are otherwise invalid."); |
| 45 | } |
| 46 | this.nodeId = nodeId; |
| 47 | this.id = id; |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Builds {@link #EMPTY_TASK_ID}. |