Class OpenSearchGenericClient
- java.lang.Object
-
- org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchGenericClient>
-
- org.opensearch.client.opensearch.generic.OpenSearchGenericClient
-
public class OpenSearchGenericClient extends ApiClient<OpenSearchTransport,OpenSearchGenericClient>
Client for the generic HTTP requests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OpenSearchGenericClient.ClientOptions
Generic client options
-
Field Summary
-
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions
-
-
Constructor Summary
Constructors Constructor Description OpenSearchGenericClient(OpenSearchTransport transport)
OpenSearchGenericClient(OpenSearchTransport transport, TransportOptions transportOptions)
OpenSearchGenericClient(OpenSearchTransport transport, TransportOptions transportOptions, OpenSearchGenericClient.ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
execute(Request request)
Executes generic HTTP request and returns generic HTTP response.java.util.concurrent.CompletableFuture<Response>
executeAsync(Request request)
Asynchronously executes generic HTTP request and returns generic HTTP response.OpenSearchGenericClient
withClientOptions(OpenSearchGenericClient.ClientOptions clientOptions)
OpenSearchGenericClient
withTransportOptions(TransportOptions transportOptions)
Creates a new client with some request options-
Methods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
-
-
-
Constructor Detail
-
OpenSearchGenericClient
public OpenSearchGenericClient(OpenSearchTransport transport)
-
OpenSearchGenericClient
public OpenSearchGenericClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
OpenSearchGenericClient
public OpenSearchGenericClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions, OpenSearchGenericClient.ClientOptions clientOptions)
-
-
Method Detail
-
withClientOptions
public OpenSearchGenericClient withClientOptions(OpenSearchGenericClient.ClientOptions clientOptions)
-
withTransportOptions
public OpenSearchGenericClient withTransportOptions(@Nullable TransportOptions transportOptions)
Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<OpenSearchTransport,OpenSearchGenericClient>
-
execute
public Response execute(Request request) throws java.io.IOException
Executes generic HTTP request and returns generic HTTP response.- Parameters:
request
- generic HTTP request- Returns:
- generic HTTP response
- Throws:
java.io.IOException
- I/O exception
-
-