Class ElasticsearchWatcherAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchWatcherAsyncClient>
co.elastic.clients.elasticsearch.watcher.ElasticsearchWatcherAsyncClient
public class ElasticsearchWatcherAsyncClient
extends ApiClient<ElasticsearchTransport,ElasticsearchWatcherAsyncClient>
Client for the watcher namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorDescriptionElasticsearchWatcherAsyncClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionackWatch
(AckWatchRequest request) Acknowledges a watch, manually throttling the execution of the watch's actions.Acknowledges a watch, manually throttling the execution of the watch's actions.activateWatch
(ActivateWatchRequest request) Activates a currently inactive watch.Activates a currently inactive watch.deactivateWatch
(DeactivateWatchRequest request) Deactivates a currently active watch.Deactivates a currently active watch.deleteWatch
(DeleteWatchRequest request) Removes a watch from Watcher.Removes a watch from Watcher.Forces the execution of a stored watch.executeWatch
(ExecuteWatchRequest request) Forces the execution of a stored watch.Forces the execution of a stored watch.getWatch
(GetWatchRequest request) Retrieves a watch by its ID.Retrieves a watch by its ID.putWatch
(PutWatchRequest request) Creates a new watch, or updates an existing one.Creates a new watch, or updates an existing one.Retrieves stored watches.queryWatches
(QueryWatchesRequest request) Retrieves stored watches.Retrieves stored watches.start()
Starts Watcher if it is not already running.stats()
Retrieves the current Watcher metrics.stats
(WatcherStatsRequest request) Retrieves the current Watcher metrics.Retrieves the current Watcher metrics.stop()
Stops Watcher if it is running.withTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchWatcherAsyncClient
-
ElasticsearchWatcherAsyncClient
public ElasticsearchWatcherAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchWatcherAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchWatcherAsyncClient>
-
ackWatch
Acknowledges a watch, manually throttling the execution of the watch's actions.- See Also:
-
ackWatch
public final CompletableFuture<AckWatchResponse> ackWatch(Function<AckWatchRequest.Builder, ObjectBuilder<AckWatchRequest>> fn) Acknowledges a watch, manually throttling the execution of the watch's actions.- Parameters:
fn
- a function that initializes a builder to create theAckWatchRequest
- See Also:
-
activateWatch
Activates a currently inactive watch.- See Also:
-
activateWatch
public final CompletableFuture<ActivateWatchResponse> activateWatch(Function<ActivateWatchRequest.Builder, ObjectBuilder<ActivateWatchRequest>> fn) Activates a currently inactive watch.- Parameters:
fn
- a function that initializes a builder to create theActivateWatchRequest
- See Also:
-
deactivateWatch
Deactivates a currently active watch.- See Also:
-
deactivateWatch
public final CompletableFuture<DeactivateWatchResponse> deactivateWatch(Function<DeactivateWatchRequest.Builder, ObjectBuilder<DeactivateWatchRequest>> fn) Deactivates a currently active watch.- Parameters:
fn
- a function that initializes a builder to create theDeactivateWatchRequest
- See Also:
-
deleteWatch
Removes a watch from Watcher.- See Also:
-
deleteWatch
public final CompletableFuture<DeleteWatchResponse> deleteWatch(Function<DeleteWatchRequest.Builder, ObjectBuilder<DeleteWatchRequest>> fn) Removes a watch from Watcher.- Parameters:
fn
- a function that initializes a builder to create theDeleteWatchRequest
- See Also:
-
executeWatch
Forces the execution of a stored watch.- See Also:
-
executeWatch
public final CompletableFuture<ExecuteWatchResponse> executeWatch(Function<ExecuteWatchRequest.Builder, ObjectBuilder<ExecuteWatchRequest>> fn) Forces the execution of a stored watch.- Parameters:
fn
- a function that initializes a builder to create theExecuteWatchRequest
- See Also:
-
executeWatch
Forces the execution of a stored watch.- See Also:
-
getWatch
Retrieves a watch by its ID.- See Also:
-
getWatch
public final CompletableFuture<GetWatchResponse> getWatch(Function<GetWatchRequest.Builder, ObjectBuilder<GetWatchRequest>> fn) Retrieves a watch by its ID.- Parameters:
fn
- a function that initializes a builder to create theGetWatchRequest
- See Also:
-
putWatch
Creates a new watch, or updates an existing one.- See Also:
-
putWatch
public final CompletableFuture<PutWatchResponse> putWatch(Function<PutWatchRequest.Builder, ObjectBuilder<PutWatchRequest>> fn) Creates a new watch, or updates an existing one.- Parameters:
fn
- a function that initializes a builder to create thePutWatchRequest
- See Also:
-
queryWatches
Retrieves stored watches.- See Also:
-
queryWatches
public final CompletableFuture<QueryWatchesResponse> queryWatches(Function<QueryWatchesRequest.Builder, ObjectBuilder<QueryWatchesRequest>> fn) Retrieves stored watches.- Parameters:
fn
- a function that initializes a builder to create theQueryWatchesRequest
- See Also:
-
queryWatches
Retrieves stored watches.- See Also:
-
start
Starts Watcher if it is not already running.- See Also:
-
stats
Retrieves the current Watcher metrics.- See Also:
-
stats
public final CompletableFuture<WatcherStatsResponse> stats(Function<WatcherStatsRequest.Builder, ObjectBuilder<WatcherStatsRequest>> fn) Retrieves the current Watcher metrics.- Parameters:
fn
- a function that initializes a builder to create theWatcherStatsRequest
- See Also:
-
stats
Retrieves the current Watcher metrics.- See Also:
-
stop
Stops Watcher if it is running.- See Also:
-