Class ElasticsearchTasksAsyncClient

java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchTasksAsyncClient>
co.elastic.clients.elasticsearch.tasks.ElasticsearchTasksAsyncClient
All Implemented Interfaces:
Closeable, AutoCloseable

public class ElasticsearchTasksAsyncClient extends ApiClient<ElasticsearchTransport,ElasticsearchTasksAsyncClient>
Client for the tasks namespace.
  • Constructor Details

  • Method Details

    • withTransportOptions

      public ElasticsearchTasksAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions)
      Description copied from class: ApiClient
      Creates a new client with some request options
      Specified by:
      withTransportOptions in class ApiClient<ElasticsearchTransport,ElasticsearchTasksAsyncClient>
    • cancel

      Cancel a task. A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. The get task information API will continue to list these cancelled tasks until they complete. The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible.

      To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task.

      See Also:
    • cancel

      Cancel a task. A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. The get task information API will continue to list these cancelled tasks until they complete. The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible.

      To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task.

      Parameters:
      fn - a function that initializes a builder to create the CancelRequest
      See Also:
    • cancel

      Cancel a task. A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. The get task information API will continue to list these cancelled tasks until they complete. The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible.

      To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task.

      See Also:
    • get

      Get task information. Get information about a task currently running in the cluster.
      See Also:
    • get

      Get task information. Get information about a task currently running in the cluster.
      Parameters:
      fn - a function that initializes a builder to create the GetTasksRequest
      See Also:
    • list

      public CompletableFuture<ListResponse> list(ListRequest request)
      Get all tasks. Get information about the tasks currently running on one or more nodes in the cluster.
      See Also:
    • list

      Get all tasks. Get information about the tasks currently running on one or more nodes in the cluster.
      Parameters:
      fn - a function that initializes a builder to create the ListRequest
      See Also:
    • list

      Get all tasks. Get information about the tasks currently running on one or more nodes in the cluster.
      See Also: