Interface RequiresTaskInformation<T extends Serializable>


public interface RequiresTaskInformation<T extends Serializable>
A long running task that implements RequiresTaskInformation will be told about the TaskDescriptor that describes the task.
Since:
v3.13
  • Method Details

    • setTaskDescriptor

      void setTaskDescriptor(TaskDescriptor<T> taskDescriptor)
      Called to give the task its TaskDescriptor. This will be called before the tasks starts running. The passed descriptor is live and may change during the life of the task.
      Parameters:
      taskDescriptor - the task's descriptor. It will not be null. The descriptor is live and may change during the life of the task.