public interface TaskAwareRequest
Modifier and Type | Method and Description |
---|---|
default Task |
createTask(long id,
java.lang.String type,
java.lang.String action,
TaskId parentTaskId)
Returns the task object that should be used to keep track of the processing of the request.
|
default java.lang.String |
getDescription()
Returns optional description of the request to be displayed by the task manager
|
TaskId |
getParentTask()
Get a reference to the task that created this request.
|
default void |
setParentTask(java.lang.String parentTaskNode,
long parentTaskId)
Set a reference to task that caused this task to be run.
|
void |
setParentTask(TaskId taskId)
Set a reference to task that created this request.
|
default void setParentTask(java.lang.String parentTaskNode, long parentTaskId)
void setParentTask(TaskId taskId)
TaskId getParentTask()
TaskId.EMPTY_TASK_ID
, meaning "there is no parent".default Task createTask(long id, java.lang.String type, java.lang.String action, TaskId parentTaskId)
default java.lang.String getDescription()