Class EsqlQueryTask
java.lang.Object
org.elasticsearch.tasks.Task
org.elasticsearch.tasks.CancellableTask
org.elasticsearch.xpack.core.async.StoredAsyncTask<EsqlQueryResponse>
org.elasticsearch.xpack.esql.action.EsqlQueryTask
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.tasks.CancellableTask
CancellableTask.CancellationListenerNested classes/interfaces inherited from class org.elasticsearch.tasks.Task
Task.Status -
Field Summary
Fields inherited from class org.elasticsearch.xpack.core.async.StoredAsyncTask
completionListenersFields inherited from class org.elasticsearch.tasks.Task
APM_TRACE_CONTEXT, HEADERS_TO_COPY, TRACE_ID, TRACE_PARENT, TRACE_PARENT_HTTP_HEADER, TRACE_START_TIME, TRACE_STATE, X_ELASTIC_PRODUCT_ORIGIN_HTTP_HEADER, X_OPAQUE_ID_HTTP_HEADER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidonResponse(EsqlQueryResponse response) voidprotected abstract Scheduler.ScheduledCancellablescheduleCancellationOnExpiry(long expirationTimeMillis) Schedules task cancellation at the given expiration timevoidsetExecutionInfo(EsqlExecutionInfo executionInfo) voidsetExpirationTime(long expirationTime) Methods inherited from class org.elasticsearch.xpack.core.async.StoredAsyncTask
addCompletionListener, cancelTask, getExecutionId, getExpirationTimeMillis, getOriginHeaders, removeCompletionListenerMethods inherited from class org.elasticsearch.tasks.CancellableTask
addListener, ensureNotCancelled, getReasonCancelled, isCancelled, notifyIfCancelled, onCancelled, shouldCancelChildrenOnCancellation, toStringMethods inherited from class org.elasticsearch.tasks.Task
getAction, getDescription, getHeader, getId, getParentTaskId, getSpanId, getStartTime, getStartTimeNanos, getStatus, getType, headers, result, result, taskInfo, taskInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xpack.core.async.AsyncTask
isCancelled
-
Constructor Details
-
EsqlQueryTask
-
-
Method Details
-
setExecutionInfo
-
executionInfo
-
getCurrentResult
- Specified by:
getCurrentResultin classStoredAsyncTask<EsqlQueryResponse>
-
onResponse
- Overrides:
onResponsein classStoredAsyncTask<EsqlQueryResponse>
-
onFailure
- Overrides:
onFailurein classStoredAsyncTask<EsqlQueryResponse>
-
setExpirationTime
public void setExpirationTime(long expirationTime) - Specified by:
setExpirationTimein interfaceAsyncTask- Overrides:
setExpirationTimein classStoredAsyncTask<EsqlQueryResponse>
-
scheduleCancellationOnExpiry
protected abstract Scheduler.ScheduledCancellable scheduleCancellationOnExpiry(long expirationTimeMillis) Schedules task cancellation at the given expiration time -
rescheduleCancellationOnExpiry
public void rescheduleCancellationOnExpiry()
-