Package org.elasticsearch.client
Class AsyncSearchClient
java.lang.Object
org.elasticsearch.client.AsyncSearchClient
public class AsyncSearchClient
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description AcknowledgedResponse
delete(DeleteAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options)
Delete an async search request.org.elasticsearch.client.Cancellable
deleteAsync(DeleteAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener)
Asynchronously delete an async search request.AsyncSearchResponse
get(GetAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options)
Get an async search request.org.elasticsearch.client.Cancellable
getAsync(GetAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AsyncSearchResponse> listener)
Asynchronously get an async search request.AsyncSearchResponse
submit(SubmitAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options)
Submit a new async search request.org.elasticsearch.client.Cancellable
submitAsync(SubmitAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AsyncSearchResponse> listener)
Asynchronously submit a new async search request.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
submit
public AsyncSearchResponse submit(SubmitAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options) throws java.io.IOExceptionSubmit a new async search request. See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
submitAsync
public org.elasticsearch.client.Cancellable submitAsync(SubmitAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AsyncSearchResponse> listener)- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
get
public AsyncSearchResponse get(GetAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options) throws java.io.IOExceptionGet an async search request. See the docs for more.- Throws:
java.io.IOException
-
getAsync
public org.elasticsearch.client.Cancellable getAsync(GetAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AsyncSearchResponse> listener)Asynchronously get an async search request. See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
delete
public AcknowledgedResponse delete(DeleteAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options) throws java.io.IOExceptionDelete an async search request. See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
deleteAsync
public org.elasticsearch.client.Cancellable deleteAsync(DeleteAsyncSearchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AcknowledgedResponse> listener)Asynchronously delete an async search request. See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-