Class ElasticsearchSearchableSnapshotsAsyncClient

java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.searchable_snapshots.ElasticsearchSearchableSnapshotsAsyncClient

public class ElasticsearchSearchableSnapshotsAsyncClient
extends ApiClient
Client for the searchable_snapshots namespace.
  • Constructor Details

    • ElasticsearchSearchableSnapshotsAsyncClient

      public ElasticsearchSearchableSnapshotsAsyncClient​(Transport transport)
  • Method Details

    • clearCache

      public java.util.concurrent.CompletableFuture<ClearCacheResponse> clearCache​(ClearCacheRequest request) throws java.io.IOException
      Clear the cache of searchable snapshots.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • clearCache

      public final java.util.concurrent.CompletableFuture<ClearCacheResponse> clearCache​(java.util.function.Function<ClearCacheRequest.Builder,​ObjectBuilder<ClearCacheRequest>> fn) throws java.io.IOException
      Clear the cache of searchable snapshots.
      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
    • mount

      public java.util.concurrent.CompletableFuture<MountResponse> mount​(MountRequest request) throws java.io.IOException
      Mount a snapshot as a searchable index.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • mount

      public final java.util.concurrent.CompletableFuture<MountResponse> mount​(java.util.function.Function<MountRequest.Builder,​ObjectBuilder<MountRequest>> fn) throws java.io.IOException
      Mount a snapshot as a searchable index.
      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
    • stats

      public java.util.concurrent.CompletableFuture<StatsResponse> stats​(StatsRequest request) throws java.io.IOException
      Retrieve shard-level statistics about searchable snapshots.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • stats

      public final java.util.concurrent.CompletableFuture<StatsResponse> stats​(java.util.function.Function<StatsRequest.Builder,​ObjectBuilder<StatsRequest>> fn) throws java.io.IOException
      Retrieve shard-level statistics about searchable snapshots.
      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