WARNING: Deprecated in 7.15.0.
The Java REST Client is deprecated in favor of the Java API Client.
DeleteAsyncSearchRequest allows deleting a running asynchronous search task using
its id. Required arguments are the
id of a running search:
DeleteAsyncSearchRequest request = new DeleteAsyncSearchRequest(id);
The asynchronous execution of a
DeleteAsyncSearchRequest allows to use an
ActionListener to be called back when the submit request returns:
The asynchronous method does not block and returns immediately. Once it is
ActionListener is called back using the
if the execution successfully completed or using the
onFailure method if
A typical listener for
AcknowledgedResponse looks like:
AcknowledgedResponse indicates the acknowledgement of the request: