Class ApiClient<Self extends ApiClient<Self>>

java.lang.Object
org.opensearch.client.base.ApiClient<Self>
Direct Known Subclasses:
CatAsyncClient, CatClient, ClusterAsyncClient, ClusterClient, DanglingIndicesAsyncClient, DanglingIndicesClient, FeaturesAsyncClient, FeaturesClient, IndicesAsyncClient, IndicesClient, IngestAsyncClient, IngestClient, NodesAsyncClient, NodesClient, OpenSearchAsyncClient, OpenSearchClient, ShutdownAsyncClient, ShutdownClient, SnapshotAsyncClient, SnapshotClient, TasksAsyncClient, TasksClient

public abstract class ApiClient<Self extends ApiClient<Self>>
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected org.opensearch.client.RequestOptions requestOptions  
    protected Transport transport  
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected ApiClient​(Transport transport, org.opensearch.client.RequestOptions requestOptions)  
  • Method Summary

    Modifier and Type Method Description
    protected <T> JsonpDeserializer<T> getDeserializer​(java.lang.Class<T> clazz)  
    org.opensearch.client.RequestOptions requestOptions()  
    abstract Self withRequestOptions​(org.opensearch.client.RequestOptions requestOptions)
    Creates a new client with some request options

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ApiClient

      protected ApiClient​(Transport transport, @Nullable org.opensearch.client.RequestOptions requestOptions)
  • Method Details

    • withRequestOptions

      public abstract Self withRequestOptions​(@Nullable org.opensearch.client.RequestOptions requestOptions)
      Creates a new client with some request options
    • requestOptions

      @Nullable public final org.opensearch.client.RequestOptions requestOptions()
    • getDeserializer

      protected <T> JsonpDeserializer<T> getDeserializer​(java.lang.Class<T> clazz)