Class BackpressureRestClient
java.lang.Object
io.trino.plugin.elasticsearch.client.BackpressureRestClient
-
Constructor Summary
ConstructorsConstructorDescriptionBackpressureRestClient(org.elasticsearch.client.RestClient delegate, ElasticsearchConfig config, io.airlift.stats.TimeStat backpressureStats) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.elasticsearch.client.ResponseperformRequest(String method, String endpoint, Map<String, String> params, org.apache.http.HttpEntity entity, org.apache.http.Header... headers) org.elasticsearch.client.ResponseperformRequest(String method, String endpoint, org.apache.http.Header... headers) voidsetHosts(org.apache.http.HttpHost... hosts)
-
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
- Throws:
IOException
-