Class BackpressureRestClient

java.lang.Object
io.trino.plugin.elasticsearch.client.BackpressureRestClient

public class BackpressureRestClient extends Object
  • Constructor Details

    • BackpressureRestClient

      public BackpressureRestClient(org.elasticsearch.client.RestClient delegate, ElasticsearchConfig config, io.airlift.stats.TimeStat backpressureStats)
  • Method Details

    • setHosts

      public void setHosts(org.apache.http.HttpHost... hosts)
    • performRequest

      public org.elasticsearch.client.Response performRequest(String method, String endpoint, org.apache.http.Header... headers) throws IOException
      Throws:
      IOException
    • performRequest

      public org.elasticsearch.client.Response performRequest(String method, String endpoint, Map<String,String> params, org.apache.http.HttpEntity entity, org.apache.http.Header... headers) throws IOException
      Throws:
      IOException
    • close

      public void close() throws IOException
      Throws:
      IOException