Class ElasticsearchTasksClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.tasks.ElasticsearchTasksClient
public class ElasticsearchTasksClient extends ApiClient
Client for the tasks namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchTasksClient(Transport transport)
-
Method Summary
Modifier and Type Method Description CancelResponse
cancel(CancelRequest request)
Cancels a task, if it can be cancelled through an API.CancelResponse
cancel(java.util.function.Function<CancelRequest.Builder,ObjectBuilder<CancelRequest>> fn)
Cancels a task, if it can be cancelled through an API.GetResponse
get(GetRequest request)
Returns information about a task.GetResponse
get(java.util.function.Function<GetRequest.Builder,ObjectBuilder<GetRequest>> fn)
Returns information about a task.ListResponse
list(ListRequest request)
Returns a list of tasks.ListResponse
list(java.util.function.Function<ListRequest.Builder,ObjectBuilder<ListRequest>> fn)
Returns a list of tasks.Methods inherited from class co.elastic.clients.base.ApiClient
_transport, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchTasksClient
-
-
Method Details
-
cancel
Cancels a task, if it can be cancelled through an API.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
cancel
public final CancelResponse cancel(java.util.function.Function<CancelRequest.Builder,ObjectBuilder<CancelRequest>> fn) throws java.io.IOExceptionCancels a task, if it can be cancelled through an API.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
get
Returns information about a task.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
get
public final GetResponse get(java.util.function.Function<GetRequest.Builder,ObjectBuilder<GetRequest>> fn) throws java.io.IOExceptionReturns information about a task.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
list
Returns a list of tasks.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
list
public final ListResponse list(java.util.function.Function<ListRequest.Builder,ObjectBuilder<ListRequest>> fn) throws java.io.IOExceptionReturns a list of tasks.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-