IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Delete watch APIedit
Executionedit
A watch can be deleted as follows:
DeleteWatchRequest request = new DeleteWatchRequest("my_watch_id"); DeleteWatchResponse response = client.watcher().deleteWatch(request, RequestOptions.DEFAULT);
Responseedit
The returned DeleteWatchResponse
contains found
, id
,
and version
information.
Asynchronous executionedit
This request can be executed asynchronously:
The asynchronous method does not block and returns immediately. Once it is
completed the ActionListener
is called back using the onResponse
method
if the execution successfully completed or using the onFailure
method if
it failed.
A typical listener for DeleteWatchResponse
looks like: