Class ElasticsearchFleetAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchFleetAsyncClient>
co.elastic.clients.elasticsearch.fleet.ElasticsearchFleetAsyncClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ElasticsearchFleetAsyncClient
extends ApiClient<ElasticsearchTransport,ElasticsearchFleetAsyncClient>
Client for the fleet namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchFleetAsyncClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionsearch
(FleetSearchRequest request) Overload ofsearch(FleetSearchRequest, Class)
, where Class is defined as Void, meaning the documents will not be deserialized.<TDocument>
CompletableFuture<FleetSearchResponse<TDocument>>search
(FleetSearchRequest request, Class<TDocument> tDocumentClass) Run a Fleet search.<TDocument>
CompletableFuture<FleetSearchResponse<TDocument>>search
(FleetSearchRequest request, Type tDocumentType) Run a Fleet search.final CompletableFuture<FleetSearchResponse<Void>>
Overload ofsearch(Function, Class)
, where Class is defined as Void, meaning the documents will not be deserialized.final <TDocument>
CompletableFuture<FleetSearchResponse<TDocument>>search
(Function<FleetSearchRequest.Builder, ObjectBuilder<FleetSearchRequest>> fn, Class<TDocument> tDocumentClass) Run a Fleet search.final <TDocument>
CompletableFuture<FleetSearchResponse<TDocument>>search
(Function<FleetSearchRequest.Builder, ObjectBuilder<FleetSearchRequest>> fn, Type tDocumentType) Run a Fleet search.withTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchFleetAsyncClient
-
ElasticsearchFleetAsyncClient
public ElasticsearchFleetAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchFleetAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchFleetAsyncClient>
-
search
public <TDocument> CompletableFuture<FleetSearchResponse<TDocument>> search(FleetSearchRequest request, Class<TDocument> tDocumentClass) Run a Fleet search. The purpose of the Fleet search API is to provide an API where the search will be run only after the provided checkpoint has been processed and is visible for searches inside of Elasticsearch.- See Also:
-
search
public final <TDocument> CompletableFuture<FleetSearchResponse<TDocument>> search(Function<FleetSearchRequest.Builder, ObjectBuilder<FleetSearchRequest>> fn, Class<TDocument> tDocumentClass) Run a Fleet search. The purpose of the Fleet search API is to provide an API where the search will be run only after the provided checkpoint has been processed and is visible for searches inside of Elasticsearch.- Parameters:
fn
- a function that initializes a builder to create theFleetSearchRequest
- See Also:
-
search
Overload ofsearch(FleetSearchRequest, Class)
, where Class is defined as Void, meaning the documents will not be deserialized. -
search
public final CompletableFuture<FleetSearchResponse<Void>> search(Function<FleetSearchRequest.Builder, ObjectBuilder<FleetSearchRequest>> fn) Overload ofsearch(Function, Class)
, where Class is defined as Void, meaning the documents will not be deserialized. -
search
public <TDocument> CompletableFuture<FleetSearchResponse<TDocument>> search(FleetSearchRequest request, Type tDocumentType) Run a Fleet search. The purpose of the Fleet search API is to provide an API where the search will be run only after the provided checkpoint has been processed and is visible for searches inside of Elasticsearch.- See Also:
-
search
public final <TDocument> CompletableFuture<FleetSearchResponse<TDocument>> search(Function<FleetSearchRequest.Builder, ObjectBuilder<FleetSearchRequest>> fn, Type tDocumentType) Run a Fleet search. The purpose of the Fleet search API is to provide an API where the search will be run only after the provided checkpoint has been processed and is visible for searches inside of Elasticsearch.- Parameters:
fn
- a function that initializes a builder to create theFleetSearchRequest
- See Also:
-