Interface DurableTask<T extends Serializable,R>

All Superinterfaces:
AsyncResultsReducer<T,R>, DistributedTask<T,R>, Serializable, Task<T>

public interface DurableTask<T extends Serializable,R> extends DistributedTask<T,R>
  • Method Details

    • name

      String name()
    • description

      String description()
    • isAutoStart

      boolean isAutoStart()
    • cancel

      boolean cancel() throws Exception
      Throws:
      Exception
    • execute

      default T execute(Object context) throws Exception
      Executes the task with an optional context parameter. Defaults to the no-arg execute() so existing implementations do not need to change.
      Throws:
      Exception