Interface AsyncTask

All Known Implementing Classes:
StoredAsyncTask

public interface AsyncTask
A task that supports asynchronous execution and provides information necessary for safe temporary storage of results
  • Method Details

    • getOriginHeaders

      Map<String,String> getOriginHeaders()
      Returns all of the request contexts headers
    • getExecutionId

      AsyncExecutionId getExecutionId()
      Returns the AsyncExecutionId of the task
    • isCancelled

      boolean isCancelled()
      Returns true if the task is cancelled
    • setExpirationTime

      void setExpirationTime(long expirationTimeMillis)
      Update the expiration time of the (partial) response.
    • cancelTask

      void cancelTask(TaskManager taskManager, Runnable runnable, String reason)
      Performs necessary checks, cancels the task and calls the runnable upon completion