Class ElasticsearchWatcherAsyncClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.watcher.ElasticsearchWatcherAsyncClient
public class ElasticsearchWatcherAsyncClient extends ApiClient
Client for the watcher namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchWatcherAsyncClient(Transport transport)
-
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<AckWatchResponse>
ackWatch(AckWatchRequest request)
Acknowledges a watch, manually throttling the execution of the watch's actions.java.util.concurrent.CompletableFuture<AckWatchResponse>
ackWatch(java.util.function.Function<AckWatchRequest.Builder,ObjectBuilder<AckWatchRequest>> fn)
Acknowledges a watch, manually throttling the execution of the watch's actions.java.util.concurrent.CompletableFuture<ActivateWatchResponse>
activateWatch(ActivateWatchRequest request)
Activates a currently inactive watch.java.util.concurrent.CompletableFuture<ActivateWatchResponse>
activateWatch(java.util.function.Function<ActivateWatchRequest.Builder,ObjectBuilder<ActivateWatchRequest>> fn)
Activates a currently inactive watch.java.util.concurrent.CompletableFuture<DeactivateWatchResponse>
deactivateWatch(DeactivateWatchRequest request)
Deactivates a currently active watch.java.util.concurrent.CompletableFuture<DeactivateWatchResponse>
deactivateWatch(java.util.function.Function<DeactivateWatchRequest.Builder,ObjectBuilder<DeactivateWatchRequest>> fn)
Deactivates a currently active watch.java.util.concurrent.CompletableFuture<DeleteWatchResponse>
deleteWatch(DeleteWatchRequest request)
Removes a watch from Watcher.java.util.concurrent.CompletableFuture<DeleteWatchResponse>
deleteWatch(java.util.function.Function<DeleteWatchRequest.Builder,ObjectBuilder<DeleteWatchRequest>> fn)
Removes a watch from Watcher.java.util.concurrent.CompletableFuture<ExecuteWatchResponse>
executeWatch(ExecuteWatchRequest request)
Forces the execution of a stored watch.java.util.concurrent.CompletableFuture<ExecuteWatchResponse>
executeWatch(java.util.function.Function<ExecuteWatchRequest.Builder,ObjectBuilder<ExecuteWatchRequest>> fn)
Forces the execution of a stored watch.java.util.concurrent.CompletableFuture<GetWatchResponse>
getWatch(GetWatchRequest request)
Retrieves a watch by its ID.java.util.concurrent.CompletableFuture<GetWatchResponse>
getWatch(java.util.function.Function<GetWatchRequest.Builder,ObjectBuilder<GetWatchRequest>> fn)
Retrieves a watch by its ID.java.util.concurrent.CompletableFuture<PutWatchResponse>
putWatch(PutWatchRequest request)
Creates a new watch, or updates an existing one.java.util.concurrent.CompletableFuture<PutWatchResponse>
putWatch(java.util.function.Function<PutWatchRequest.Builder,ObjectBuilder<PutWatchRequest>> fn)
Creates a new watch, or updates an existing one.java.util.concurrent.CompletableFuture<QueryWatchesResponse>
queryWatches(QueryWatchesRequest request)
Retrieves stored watches.java.util.concurrent.CompletableFuture<QueryWatchesResponse>
queryWatches(java.util.function.Function<QueryWatchesRequest.Builder,ObjectBuilder<QueryWatchesRequest>> fn)
Retrieves stored watches.java.util.concurrent.CompletableFuture<StartResponse>
start()
Starts Watcher if it is not already running.java.util.concurrent.CompletableFuture<StatsResponse>
stats(StatsRequest request)
Retrieves the current Watcher metrics.java.util.concurrent.CompletableFuture<StatsResponse>
stats(java.util.function.Function<StatsRequest.Builder,ObjectBuilder<StatsRequest>> fn)
Retrieves the current Watcher metrics.java.util.concurrent.CompletableFuture<StopResponse>
stop()
Stops Watcher if it is running.Methods inherited from class co.elastic.clients.base.ApiClient
_transport, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchWatcherAsyncClient
-
-
Method Details
-
ackWatch
public java.util.concurrent.CompletableFuture<AckWatchResponse> ackWatch(AckWatchRequest request) throws java.io.IOExceptionAcknowledges a watch, manually throttling the execution of the watch's actions.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
ackWatch
public final java.util.concurrent.CompletableFuture<AckWatchResponse> ackWatch(java.util.function.Function<AckWatchRequest.Builder,ObjectBuilder<AckWatchRequest>> fn) throws java.io.IOExceptionAcknowledges a watch, manually throttling the execution of the watch's actions.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
activateWatch
public java.util.concurrent.CompletableFuture<ActivateWatchResponse> activateWatch(ActivateWatchRequest request) throws java.io.IOExceptionActivates a currently inactive watch.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
activateWatch
public final java.util.concurrent.CompletableFuture<ActivateWatchResponse> activateWatch(java.util.function.Function<ActivateWatchRequest.Builder,ObjectBuilder<ActivateWatchRequest>> fn) throws java.io.IOExceptionActivates a currently inactive watch.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deactivateWatch
public java.util.concurrent.CompletableFuture<DeactivateWatchResponse> deactivateWatch(DeactivateWatchRequest request) throws java.io.IOExceptionDeactivates a currently active watch.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deactivateWatch
public final java.util.concurrent.CompletableFuture<DeactivateWatchResponse> deactivateWatch(java.util.function.Function<DeactivateWatchRequest.Builder,ObjectBuilder<DeactivateWatchRequest>> fn) throws java.io.IOExceptionDeactivates a currently active watch.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteWatch
public java.util.concurrent.CompletableFuture<DeleteWatchResponse> deleteWatch(DeleteWatchRequest request) throws java.io.IOExceptionRemoves a watch from Watcher.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteWatch
public final java.util.concurrent.CompletableFuture<DeleteWatchResponse> deleteWatch(java.util.function.Function<DeleteWatchRequest.Builder,ObjectBuilder<DeleteWatchRequest>> fn) throws java.io.IOExceptionRemoves a watch from Watcher.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
executeWatch
public java.util.concurrent.CompletableFuture<ExecuteWatchResponse> executeWatch(ExecuteWatchRequest request) throws java.io.IOExceptionForces the execution of a stored watch.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
executeWatch
public final java.util.concurrent.CompletableFuture<ExecuteWatchResponse> executeWatch(java.util.function.Function<ExecuteWatchRequest.Builder,ObjectBuilder<ExecuteWatchRequest>> fn) throws java.io.IOExceptionForces the execution of a stored watch.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getWatch
public java.util.concurrent.CompletableFuture<GetWatchResponse> getWatch(GetWatchRequest request) throws java.io.IOExceptionRetrieves a watch by its ID.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getWatch
public final java.util.concurrent.CompletableFuture<GetWatchResponse> getWatch(java.util.function.Function<GetWatchRequest.Builder,ObjectBuilder<GetWatchRequest>> fn) throws java.io.IOExceptionRetrieves a watch by its ID.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putWatch
public java.util.concurrent.CompletableFuture<PutWatchResponse> putWatch(PutWatchRequest request) throws java.io.IOExceptionCreates a new watch, or updates an existing one.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putWatch
public final java.util.concurrent.CompletableFuture<PutWatchResponse> putWatch(java.util.function.Function<PutWatchRequest.Builder,ObjectBuilder<PutWatchRequest>> fn) throws java.io.IOExceptionCreates a new watch, or updates an existing one.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
queryWatches
public java.util.concurrent.CompletableFuture<QueryWatchesResponse> queryWatches(QueryWatchesRequest request) throws java.io.IOExceptionRetrieves stored watches.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
queryWatches
public final java.util.concurrent.CompletableFuture<QueryWatchesResponse> queryWatches(java.util.function.Function<QueryWatchesRequest.Builder,ObjectBuilder<QueryWatchesRequest>> fn) throws java.io.IOExceptionRetrieves stored watches.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
start
Starts Watcher if it is not already running.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
stats
public java.util.concurrent.CompletableFuture<StatsResponse> stats(StatsRequest request) throws java.io.IOExceptionRetrieves the current Watcher metrics.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
stats
public final java.util.concurrent.CompletableFuture<StatsResponse> stats(java.util.function.Function<StatsRequest.Builder,ObjectBuilder<StatsRequest>> fn) throws java.io.IOExceptionRetrieves the current Watcher metrics.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
stop
Stops Watcher if it is running.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-