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 TypeMethodDescriptionDisable logs stream.logsDisable(LogsDisableRequest request) Disable logs stream.Disable logs stream.Enable logs stream.logsEnable(LogsEnableRequest request) Enable logs stream.Enable logs 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 logs stream.Turn off the logs stream feature for this cluster.
- See Also:
-
logsDisable
public final CompletableFuture<LogsDisableResponse> logsDisable(Function<LogsDisableRequest.Builder, ObjectBuilder<LogsDisableRequest>> fn) Disable logs stream.Turn off the logs stream feature for this cluster.
- Parameters:
fn- a function that initializes a builder to create theLogsDisableRequest- See Also:
-
logsDisable
Disable logs stream.Turn off the logs stream feature for this cluster.
- See Also:
-
logsEnable
Enable logs stream.Turn on the logs 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
logs|logs.*. 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 logs stream.Turn on the logs 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
logs|logs.*. 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:
-
logsEnable
Enable logs stream.Turn on the logs 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
logs|logs.*. If those indices or data streams exist, a409 - Conflictresponse and error is returned.- 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:
-