B C D F G H O P R S T 

B

build() - Method in class org.elasticsearch.client.RestClientBuilder
Creates a new RestClient based on the provided configuration.
builder(HttpHost...) - Static method in class org.elasticsearch.client.RestClient
Returns a new RestClientBuilder to help with RestClient creation.
buildResult(HttpContext) - Method in class org.elasticsearch.client.HeapBufferedAsyncResponseConsumer
 

C

close() - Method in class org.elasticsearch.client.RestClient
 
createHttpAsyncResponseConsumer() - Method in interface org.elasticsearch.client.HttpAsyncResponseConsumerFactory
Creates the HttpAsyncResponseConsumer, called once per request attempt.
createHttpAsyncResponseConsumer() - Method in class org.elasticsearch.client.HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory
 
customizeHttpClient(HttpAsyncClientBuilder) - Method in interface org.elasticsearch.client.RestClientBuilder.HttpClientConfigCallback
Allows to customize the CloseableHttpAsyncClient being created and used by the RestClient.
customizeRequestConfig(RequestConfig.Builder) - Method in interface org.elasticsearch.client.RestClientBuilder.RequestConfigCallback
Allows to customize the RequestConfig that will be used with each request.

D

DEFAULT - Static variable in interface org.elasticsearch.client.HttpAsyncResponseConsumerFactory
Creates the default type of HttpAsyncResponseConsumer, based on heap buffering with a buffer limit of 100MB.
DEFAULT_CONNECT_TIMEOUT_MILLIS - Static variable in class org.elasticsearch.client.RestClientBuilder
 
DEFAULT_CONNECTION_REQUEST_TIMEOUT_MILLIS - Static variable in class org.elasticsearch.client.RestClientBuilder
 
DEFAULT_MAX_CONN_PER_ROUTE - Static variable in class org.elasticsearch.client.RestClientBuilder
 
DEFAULT_MAX_CONN_TOTAL - Static variable in class org.elasticsearch.client.RestClientBuilder
 
DEFAULT_MAX_RETRY_TIMEOUT_MILLIS - Static variable in class org.elasticsearch.client.RestClientBuilder
 
DEFAULT_SOCKET_TIMEOUT_MILLIS - Static variable in class org.elasticsearch.client.RestClientBuilder
 

F

FailureListener() - Constructor for class org.elasticsearch.client.RestClient.FailureListener
 

G

getBufferLimit() - Method in class org.elasticsearch.client.HeapBufferedAsyncResponseConsumer
Get the limit of the buffer.
getByteBufferAllocator() - Method in class org.elasticsearch.client.HeapBufferedAsyncResponseConsumer
Returns the instance of ByteBufferAllocator to use for content buffering.
getEntity() - Method in class org.elasticsearch.client.Response
Returns the response body available, null otherwise
getHeader(String) - Method in class org.elasticsearch.client.Response
Returns the value of the first header with a specified name of this message.
getHeaders() - Method in class org.elasticsearch.client.Response
Returns all the response headers
getHost() - Method in class org.elasticsearch.client.Response
Returns the node that returned this response
getRequestLine() - Method in class org.elasticsearch.client.Response
Returns the request line that generated this response
getResponse() - Method in exception org.elasticsearch.client.ResponseException
Returns the Response that caused this exception to be thrown.
getStatusLine() - Method in class org.elasticsearch.client.Response
Returns the status line of the current response

H

HeapBufferedAsyncResponseConsumer - Class in org.elasticsearch.client
Default implementation of HttpAsyncResponseConsumer.
HeapBufferedAsyncResponseConsumer(int) - Constructor for class org.elasticsearch.client.HeapBufferedAsyncResponseConsumer
Creates a new instance of this consumer with the provided buffer limit
HeapBufferedResponseConsumerFactory(int) - Constructor for class org.elasticsearch.client.HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory
 
HttpAsyncResponseConsumerFactory - Interface in org.elasticsearch.client
Factory used to create instances of HttpAsyncResponseConsumer.
HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory - Class in org.elasticsearch.client
Default factory used to create instances of HttpAsyncResponseConsumer.

O

onContentReceived(ContentDecoder, IOControl) - Method in class org.elasticsearch.client.HeapBufferedAsyncResponseConsumer
 
onEntityEnclosed(HttpEntity, ContentType) - Method in class org.elasticsearch.client.HeapBufferedAsyncResponseConsumer
 
onFailure(Exception) - Method in interface org.elasticsearch.client.ResponseListener
Method invoked if the request failed.
onFailure(HttpHost) - Method in class org.elasticsearch.client.RestClient.FailureListener
Notifies that the host provided as argument has just failed
onResponseReceived(HttpResponse) - Method in class org.elasticsearch.client.HeapBufferedAsyncResponseConsumer
 
onSuccess(Response) - Method in interface org.elasticsearch.client.ResponseListener
Method invoked if the request yielded a successful response
org.elasticsearch.client - package org.elasticsearch.client
 

P

performRequest(String, String, Map<String, String>, Header...) - Method in class org.elasticsearch.client.RestClient
Sends a request to the Elasticsearch cluster that the client points to and waits for the corresponding response to be returned.
performRequest(String, String, Map<String, String>, HttpEntity, Header...) - Method in class org.elasticsearch.client.RestClient
Sends a request to the Elasticsearch cluster that the client points to and waits for the corresponding response to be returned.
performRequest(String, String, Map<String, String>, HttpEntity, HttpAsyncResponseConsumerFactory, Header...) - Method in class org.elasticsearch.client.RestClient
Sends a request to the Elasticsearch cluster that the client points to.
performRequest(String, String, Header...) - Method in class org.elasticsearch.client.RestClient
Sends a request to the Elasticsearch cluster that the client points to and waits for the corresponding response to be returned.
performRequestAsync(String, String, Map<String, String>, HttpEntity, HttpAsyncResponseConsumerFactory, ResponseListener, Header...) - Method in class org.elasticsearch.client.RestClient
Sends a request to the Elasticsearch cluster that the client points to.
performRequestAsync(String, String, Map<String, String>, HttpEntity, ResponseListener, Header...) - Method in class org.elasticsearch.client.RestClient
Sends a request to the Elasticsearch cluster that the client points to.
performRequestAsync(String, String, Map<String, String>, ResponseListener, Header...) - Method in class org.elasticsearch.client.RestClient
Sends a request to the Elasticsearch cluster that the client points to.
performRequestAsync(String, String, ResponseListener, Header...) - Method in class org.elasticsearch.client.RestClient
Sends a request to the Elasticsearch cluster that the client points to.

R

releaseResources() - Method in class org.elasticsearch.client.HeapBufferedAsyncResponseConsumer
 
Response - Class in org.elasticsearch.client
Holds an elasticsearch response.
ResponseException - Exception in org.elasticsearch.client
Exception thrown when an elasticsearch node responds to a request with a status code that indicates an error.
ResponseException(Response) - Constructor for exception org.elasticsearch.client.ResponseException
 
ResponseListener - Interface in org.elasticsearch.client
Listener to be provided when calling async performRequest methods provided by RestClient.
RestClient - Class in org.elasticsearch.client
Client that connects to an Elasticsearch cluster through HTTP.
RestClient.FailureListener - Class in org.elasticsearch.client
Listener that allows to be notified whenever a failure happens.
RestClientBuilder - Class in org.elasticsearch.client
Helps creating a new RestClient.
RestClientBuilder.HttpClientConfigCallback - Interface in org.elasticsearch.client
Callback used to customize the CloseableHttpClient instance used by a RestClient instance.
RestClientBuilder.RequestConfigCallback - Interface in org.elasticsearch.client
Callback used the default RequestConfig being set to the CloseableHttpClient

S

setDefaultHeaders(Header[]) - Method in class org.elasticsearch.client.RestClientBuilder
Sets the default request headers, which will be sent along with each request.
setFailureListener(RestClient.FailureListener) - Method in class org.elasticsearch.client.RestClientBuilder
Sets the RestClient.FailureListener to be notified for each request failure
setHosts(HttpHost...) - Method in class org.elasticsearch.client.RestClient
Replaces the hosts that the client communicates with.
setHttpClientConfigCallback(RestClientBuilder.HttpClientConfigCallback) - Method in class org.elasticsearch.client.RestClientBuilder
Sets the RestClientBuilder.HttpClientConfigCallback to be used to customize http client configuration
setMaxRetryTimeoutMillis(int) - Method in class org.elasticsearch.client.RestClientBuilder
Sets the maximum timeout (in milliseconds) to honour in case of multiple retries of the same request.
setPathPrefix(String) - Method in class org.elasticsearch.client.RestClientBuilder
Sets the path's prefix for every request used by the http client.
setRequestConfigCallback(RestClientBuilder.RequestConfigCallback) - Method in class org.elasticsearch.client.RestClientBuilder
Sets the RestClientBuilder.RequestConfigCallback to be used to customize http client configuration

T

toString() - Method in class org.elasticsearch.client.Response
 
B C D F G H O P R S T 
Skip navigation links