Class ElasticsearchFeaturesAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchFeaturesAsyncClient>
co.elastic.clients.elasticsearch.features.ElasticsearchFeaturesAsyncClient
public class ElasticsearchFeaturesAsyncClient extends ApiClient<ElasticsearchTransport,ElasticsearchFeaturesAsyncClient>
Client for the features namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
Constructors Constructor Description ElasticsearchFeaturesAsyncClient(ElasticsearchTransport transport)
ElasticsearchFeaturesAsyncClient(ElasticsearchTransport transport, TransportOptions transportOptions)
-
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<GetFeaturesResponse>
getFeatures()
Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshotjava.util.concurrent.CompletableFuture<ResetFeaturesResponse>
resetFeatures()
Resets the internal state of features, usually by deleting system indicesElasticsearchFeaturesAsyncClient
withTransportOptions(TransportOptions transportOptions)
Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_transport, _transportOptions, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchFeaturesAsyncClient
-
ElasticsearchFeaturesAsyncClient
public ElasticsearchFeaturesAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchFeaturesAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions)Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,ElasticsearchFeaturesAsyncClient>
-
getFeatures
public java.util.concurrent.CompletableFuture<GetFeaturesResponse> getFeatures() throws java.io.IOException, ElasticsearchExceptionGets a list of features which can be included in snapshots using the feature_states field when creating a snapshot- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
resetFeatures
public java.util.concurrent.CompletableFuture<ResetFeaturesResponse> resetFeatures() throws java.io.IOException, ElasticsearchExceptionResets the internal state of features, usually by deleting system indices- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-