- 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 Summary
Modifier and TypeMethodDescriptionvoidcancelTask(TaskManager taskManager, Runnable runnable, String reason) Performs necessary checks, cancels the task and calls the runnable upon completionReturns theAsyncExecutionIdof the taskReturns all of the request contexts headersbooleanReturns true if the task is cancelledvoidsetExpirationTime(long expirationTimeMillis) Update the expiration time of the (partial) response.
-
Method Details
-
getOriginHeaders
Returns all of the request contexts headers -
getExecutionId
AsyncExecutionId getExecutionId()Returns theAsyncExecutionIdof 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
Performs necessary checks, cancels the task and calls the runnable upon completion
-