类 AsyncSearchClient
java.lang.Object
org.easysearch.client.AsyncSearchClient
public class AsyncSearchClient
extends java.lang.Object
-
方法概要
修饰符和类型 方法 说明 AcknowledgedResponsedelete(DeleteAsyncSearchRequest request, org.easysearch.client.RequestOptions options)Delete an async search request.org.easysearch.client.CancellabledeleteAsync(DeleteAsyncSearchRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<AcknowledgedResponse> listener)Asynchronously delete an async search request.AsyncSearchResponseget(GetAsyncSearchRequest request, org.easysearch.client.RequestOptions options)Get an async search request.org.easysearch.client.CancellablegetAsync(GetAsyncSearchRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<AsyncSearchResponse> listener)Asynchronously get an async search request.AsyncSearchResponsesubmit(SubmitAsyncSearchRequest request, org.easysearch.client.RequestOptions options)Submit a new async search request.org.easysearch.client.CancellablesubmitAsync(SubmitAsyncSearchRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<AsyncSearchResponse> listener)Asynchronously submit a new async search request.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
方法详细资料
-
submit
public AsyncSearchResponse submit(SubmitAsyncSearchRequest request, org.easysearch.client.RequestOptions options) throws java.io.IOExceptionSubmit a new async search request.- 参数:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- 返回:
- the response
- 抛出:
java.io.IOException- in case there is a problem sending the request or parsing back the response
-
submitAsync
public org.easysearch.client.Cancellable submitAsync(SubmitAsyncSearchRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<AsyncSearchResponse> listener)Asynchronously submit a new async search request.- 参数:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- 返回:
- cancellable that may be used to cancel the request
-
get
public AsyncSearchResponse get(GetAsyncSearchRequest request, org.easysearch.client.RequestOptions options) throws java.io.IOExceptionGet an async search request.- 抛出:
java.io.IOException
-
getAsync
public org.easysearch.client.Cancellable getAsync(GetAsyncSearchRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<AsyncSearchResponse> listener)Asynchronously get an async search request.- 参数:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- 返回:
- cancellable that may be used to cancel the request
-
delete
public AcknowledgedResponse delete(DeleteAsyncSearchRequest request, org.easysearch.client.RequestOptions options) throws java.io.IOExceptionDelete an async search request.- 参数:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- 返回:
- the response
- 抛出:
java.io.IOException- in case there is a problem sending the request or parsing back the response
-
deleteAsync
public org.easysearch.client.Cancellable deleteAsync(DeleteAsyncSearchRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<AcknowledgedResponse> listener)Asynchronously delete an async search request.- 参数:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- 返回:
- cancellable that may be used to cancel the request
-