Package org.elasticsearch.client
Class WatcherClient
- java.lang.Object
-
- org.elasticsearch.client.WatcherClient
-
public final class WatcherClient extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutWatchResponse
putWatch(PutWatchRequest request, RequestOptions options)
Put a watch into the cluster See the docs for more.void
putWatchAsync(PutWatchRequest request, RequestOptions options, ActionListener<PutWatchResponse> listener)
Asynchronously put a watch into the cluster See the docs for more.
-
-
-
Method Detail
-
putWatch
public PutWatchResponse putWatch(PutWatchRequest request, RequestOptions options) throws java.io.IOException
Put a watch into the cluster 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
-
putWatchAsync
public void putWatchAsync(PutWatchRequest request, RequestOptions options, ActionListener<PutWatchResponse> listener)
Asynchronously put a watch into the cluster 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
-
-