/** * Returns the task object that should be used to keep track of the processing of the request. * * A request can override this method and return null to avoid being tracked by the task * manager. */ default Task createTask(long id, String type, String action, TaskId parentTaskId, Map<String, String> headers) { return new Task(id, type, action, getDescription(), parentTaskId, headers); }
/** * Returns the task object that should be used to keep track of the processing of the request. * * A request can override this method and return null to avoid being tracked by the task * manager. */ default Task createTask(long id, String type, String action, TaskId parentTaskId) { return new Task(id, type, action, getDescription(), parentTaskId); }
/** * Returns the task object that should be used to keep track of the processing of the request. * * A request can override this method and return null to avoid being tracked by the task * manager. */ default Task createTask(long id, String type, String action, TaskId parentTaskId, Map<String, String> headers) { return new Task(id, type, action, getDescription(), parentTaskId, headers); }
/** * Returns the task object that should be used to keep track of the processing of the request. * * A request can override this method and return null to avoid being tracked by the task * manager. */ default Task createTask(long id, String type, String action, TaskId parentTaskId, Map<String, String> headers) { return new Task(id, type, action, getDescription(), parentTaskId, headers); }
/** * Returns the task object that should be used to keep track of the processing of the request. * * A request can override this method and return null to avoid being tracked by the task manager. */ public Task createTask(long id, String type, String action) { return new Task(id, type, action, getDescription()); }
public Task createTask(long id, String type, String action, TaskId parentTaskId) { return new Task(id, type, action, getDescription(), parentTaskId); }
public Task createTask(long id, String type, String action, TaskId parentTaskId) { return new Task(id, type, action, getDescription(), parentTaskId); } }