- All Known Implementing Classes:
StoredAsyncTask
public interface AsyncTask
A task that supports asynchronous execution and provides information necessary for safe temporary storage of results
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TransportVersionTransport version that addedkeep_aliveto async task status payloads. -
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 taskorg.elasticsearch.core.TimeValueReturns the currently effective keep-alive for this task.Returns all of the request contexts headersbooleanReturns true if the task is cancelledvoidsetExpirationTime(long expirationTimeMillis, org.elasticsearch.core.TimeValue keepAlive) Update the expiration time of the (partial) response.
-
Field Details
-
ASYNC_TASK_KEEP_ALIVE_STATUS
Transport version that addedkeep_aliveto async task status payloads.
-
-
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, org.elasticsearch.core.TimeValue keepAlive) Update the expiration time of the (partial) response. -
getKeepAlive
org.elasticsearch.core.TimeValue getKeepAlive()Returns the currently effective keep-alive for this task. -
cancelTask
Performs necessary checks, cancels the task and calls the runnable upon completion
-