Class OpenSearchDanglingIndicesAsyncClient
- java.lang.Object
-
- org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchDanglingIndicesAsyncClient>
-
- org.opensearch.client.opensearch.dangling_indices.OpenSearchDanglingIndicesAsyncClient
-
public class OpenSearchDanglingIndicesAsyncClient extends ApiClient<OpenSearchTransport,OpenSearchDanglingIndicesAsyncClient>
Client for the dangling_indices namespace.
-
-
Field Summary
-
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions
-
-
Constructor Summary
Constructors Constructor Description OpenSearchDanglingIndicesAsyncClient(OpenSearchTransport transport)
OpenSearchDanglingIndicesAsyncClient(OpenSearchTransport transport, TransportOptions transportOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<DeleteDanglingIndexResponse>
deleteDanglingIndex(java.util.function.Function<DeleteDanglingIndexRequest.Builder,ObjectBuilder<DeleteDanglingIndexRequest>> fn)
Deletes the specified dangling indexjava.util.concurrent.CompletableFuture<DeleteDanglingIndexResponse>
deleteDanglingIndex(DeleteDanglingIndexRequest request)
Deletes the specified dangling indexjava.util.concurrent.CompletableFuture<ImportDanglingIndexResponse>
importDanglingIndex(java.util.function.Function<ImportDanglingIndexRequest.Builder,ObjectBuilder<ImportDanglingIndexRequest>> fn)
Imports the specified dangling indexjava.util.concurrent.CompletableFuture<ImportDanglingIndexResponse>
importDanglingIndex(ImportDanglingIndexRequest request)
Imports the specified dangling indexjava.util.concurrent.CompletableFuture<ListDanglingIndicesResponse>
listDanglingIndices()
Returns all dangling indices.OpenSearchDanglingIndicesAsyncClient
withTransportOptions(TransportOptions transportOptions)
Creates a new client with some request options-
Methods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
-
-
-
Constructor Detail
-
OpenSearchDanglingIndicesAsyncClient
public OpenSearchDanglingIndicesAsyncClient(OpenSearchTransport transport)
-
OpenSearchDanglingIndicesAsyncClient
public OpenSearchDanglingIndicesAsyncClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Detail
-
withTransportOptions
public OpenSearchDanglingIndicesAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions)
Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<OpenSearchTransport,OpenSearchDanglingIndicesAsyncClient>
-
deleteDanglingIndex
public java.util.concurrent.CompletableFuture<DeleteDanglingIndexResponse> deleteDanglingIndex(DeleteDanglingIndexRequest request) throws java.io.IOException, OpenSearchException
Deletes the specified dangling index- Throws:
java.io.IOException
OpenSearchException
-
deleteDanglingIndex
public final java.util.concurrent.CompletableFuture<DeleteDanglingIndexResponse> deleteDanglingIndex(java.util.function.Function<DeleteDanglingIndexRequest.Builder,ObjectBuilder<DeleteDanglingIndexRequest>> fn) throws java.io.IOException, OpenSearchException
Deletes the specified dangling index- Parameters:
fn
- a function that initializes a builder to create theDeleteDanglingIndexRequest
- Throws:
java.io.IOException
OpenSearchException
-
importDanglingIndex
public java.util.concurrent.CompletableFuture<ImportDanglingIndexResponse> importDanglingIndex(ImportDanglingIndexRequest request) throws java.io.IOException, OpenSearchException
Imports the specified dangling index- Throws:
java.io.IOException
OpenSearchException
-
importDanglingIndex
public final java.util.concurrent.CompletableFuture<ImportDanglingIndexResponse> importDanglingIndex(java.util.function.Function<ImportDanglingIndexRequest.Builder,ObjectBuilder<ImportDanglingIndexRequest>> fn) throws java.io.IOException, OpenSearchException
Imports the specified dangling index- Parameters:
fn
- a function that initializes a builder to create theImportDanglingIndexRequest
- Throws:
java.io.IOException
OpenSearchException
-
listDanglingIndices
public java.util.concurrent.CompletableFuture<ListDanglingIndicesResponse> listDanglingIndices() throws java.io.IOException, OpenSearchException
Returns all dangling indices.- Throws:
java.io.IOException
OpenSearchException
-
-