Class ElasticsearchTasksAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchTasksAsyncClient>
co.elastic.clients.elasticsearch.tasks.ElasticsearchTasksAsyncClient
public class ElasticsearchTasksAsyncClient
extends ApiClient<ElasticsearchTransport,ElasticsearchTasksAsyncClient>
Client for the tasks namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchTasksAsyncClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptioncancel()
Cancels a task, if it can be cancelled through an API.cancel
(CancelRequest request) Cancels a task, if it can be cancelled through an API.final CompletableFuture<CancelResponse>
Cancels a task, if it can be cancelled through an API.get
(GetTasksRequest request) Returns information about a task.Returns information about a task.list()
The task management API returns information about tasks currently executing on one or more nodes in the cluster.list
(ListRequest request) The task management API returns information about tasks currently executing on one or more nodes in the cluster.final CompletableFuture<ListResponse>
The task management API returns information about tasks currently executing on one or more nodes in the cluster.withTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchTasksAsyncClient
-
ElasticsearchTasksAsyncClient
public ElasticsearchTasksAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
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 classApiClient<ElasticsearchTransport,
ElasticsearchTasksAsyncClient>
-
cancel
Cancels a task, if it can be cancelled through an API.- See Also:
-
cancel
public final CompletableFuture<CancelResponse> cancel(Function<CancelRequest.Builder, ObjectBuilder<CancelRequest>> fn) Cancels a task, if it can be cancelled through an API.- Parameters:
fn
- a function that initializes a builder to create theCancelRequest
- See Also:
-
cancel
Cancels a task, if it can be cancelled through an API.- See Also:
-
get
Returns information about a task.- See Also:
-
get
public final CompletableFuture<GetTasksResponse> get(Function<GetTasksRequest.Builder, ObjectBuilder<GetTasksRequest>> fn) Returns information about a task.- Parameters:
fn
- a function that initializes a builder to create theGetTasksRequest
- See Also:
-
list
The task management API returns information about tasks currently executing on one or more nodes in the cluster.- See Also:
-
list
public final CompletableFuture<ListResponse> list(Function<ListRequest.Builder, ObjectBuilder<ListRequest>> fn) The task management API returns information about tasks currently executing on one or more nodes in the cluster.- Parameters:
fn
- a function that initializes a builder to create theListRequest
- See Also:
-
list
The task management API returns information about tasks currently executing on one or more nodes in the cluster.- See Also:
-