Interface TaskAwareRequest

    • Method Detail

      • setParentTask

        default void setParentTask​(String parentTaskNode,
                                   long parentTaskId)
        Set a reference to task that caused this task to be run.
      • setParentTask

        void setParentTask​(TaskId taskId)
        Set a reference to task that created this request.
      • getParentTask

        TaskId getParentTask()
        Get a reference to the task that created this request. Implementers should default to TaskId.EMPTY_TASK_ID, meaning "there is no parent".
      • createTask

        default Task createTask​(long id,
                                String type,
                                String action,
                                TaskId parentTaskId,
                                Map<String,​String> headers)
        Returns the task object that should be used to keep track of the processing of the request.
      • getDescription

        default String getDescription()
        Returns optional description of the request to be displayed by the task manager