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, PARENT_APM_TRACE_CONTEXT, PARENT_TRACE_PARENT_HEADER, PARENT_TRACE_STATE, startTime, TRACE_ID, TRACE_PARENT_HTTP_HEADER, TRACE_START_TIME, TRACE_STATE, X_ELASTIC_PRODUCT_ORIGIN_HTTP_HEADER, X_ELASTIC_PROJECT_ID_HTTP_HEADER, X_OPAQUE_ID_HTTP_HEADERFields inherited from interface org.elasticsearch.xpack.core.async.AsyncTask
ASYNC_TASK_KEEP_ALIVE_STATUS -
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, org.elasticsearch.core.TimeValue keepAlive) Methods inherited from class org.elasticsearch.xpack.core.async.StoredAsyncTask
addCompletionListener, cancelTask, getExecutionId, getExpirationTimeMillis, getKeepAlive, 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, getProjectId, 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
-
sessionId
-
getCurrentResult
- Specified by:
getCurrentResultin classStoredAsyncTask<EsqlQueryResponse>
-
onResponse
- Overrides:
onResponsein classStoredAsyncTask<EsqlQueryResponse>
-
onFailure
- Overrides:
onFailurein classStoredAsyncTask<EsqlQueryResponse>
-
scheduleCancellationOnExpiry
protected abstract Scheduler.ScheduledCancellable scheduleCancellationOnExpiry(long expirationTimeMillis) Schedules task cancellation at the given expiration time -
rescheduleCancellationOnExpiry
public void rescheduleCancellationOnExpiry() -
setExpirationTime
public void setExpirationTime(long expirationTime, org.elasticsearch.core.TimeValue keepAlive) - Specified by:
setExpirationTimein interfaceAsyncTask- Overrides:
setExpirationTimein classStoredAsyncTask<EsqlQueryResponse>
-