@Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), taskId);
    }
Provides the ID of the task.

@return the task ID
connect/api/src/main/java/org/apache/kafka/connect/health/TaskState.java