Class ElasticsearchStreamsAsyncClient
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchStreamsAsyncClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionlogsDisable(LogsDisableRequest request) Disable a named stream.Disable a named stream.logsEnable(LogsEnableRequest request) Enable a named stream.Enable a named stream.status()Get the status of streams.status(StreamsStatusRequest request) Get the status of streams.Get the status of streams.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchStreamsAsyncClient
-
ElasticsearchStreamsAsyncClient
public ElasticsearchStreamsAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchStreamsAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchStreamsAsyncClient>
-
logsDisable
Disable a named stream.Turn off the named stream feature for this cluster.
- See Also:
-
logsDisable
public final CompletableFuture<LogsDisableResponse> logsDisable(Function<LogsDisableRequest.Builder, ObjectBuilder<LogsDisableRequest>> fn) Disable a named stream.Turn off the named stream feature for this cluster.
- Parameters:
fn- a function that initializes a builder to create theLogsDisableRequest- See Also:
-
logsEnable
Enable a named stream.Turn on the named stream feature for this cluster.
NOTE: To protect existing data, this feature can be turned on only if the cluster does not have existing indices or data streams that match the pattern
<name>|<name>.*for the enabled stream type name. If those indices or data streams exist, a409 - Conflictresponse and error is returned.- See Also:
-
logsEnable
public final CompletableFuture<LogsEnableResponse> logsEnable(Function<LogsEnableRequest.Builder, ObjectBuilder<LogsEnableRequest>> fn) Enable a named stream.Turn on the named stream feature for this cluster.
NOTE: To protect existing data, this feature can be turned on only if the cluster does not have existing indices or data streams that match the pattern
<name>|<name>.*for the enabled stream type name. If those indices or data streams exist, a409 - Conflictresponse and error is returned.- Parameters:
fn- a function that initializes a builder to create theLogsEnableRequest- See Also:
-
status
Get the status of streams.Get the current status for all types of streams.
- See Also:
-
status
public final CompletableFuture<StreamsStatusResponse> status(Function<StreamsStatusRequest.Builder, ObjectBuilder<StreamsStatusRequest>> fn) Get the status of streams.Get the current status for all types of streams.
- Parameters:
fn- a function that initializes a builder to create theStreamsStatusRequest- See Also:
-
status
Get the status of streams.Get the current status for all types of streams.
- See Also:
-