Class InfluxDBClientReactiveImpl
java.lang.Object
com.influxdb.internal.AbstractRestClient
com.influxdb.client.internal.AbstractInfluxDBClient
com.influxdb.client.reactive.internal.InfluxDBClientReactiveImpl
- All Implemented Interfaces:
InfluxDBClientReactive
,AutoCloseable
public class InfluxDBClientReactiveImpl
extends AbstractInfluxDBClient
implements InfluxDBClientReactive
- Author:
- Jakub Bednar (bednar@github) (20/11/2018 07:12)
-
Field Summary
Fields inherited from class com.influxdb.client.internal.AbstractInfluxDBClient
autoCloseables, DEFAULT_DIALECT, gzipInterceptor, healthService, loggingInterceptor, options, pingService, retrofit
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDisable Gzip compress for http request body.Enable Gzip compress for http requests.com.influxdb.LogLevel
Create a new Query client.Create a new Write client.getWriteReactiveApi
(WriteOptionsReactive writeOptions) Create a new Write client.org.reactivestreams.Publisher
<HealthCheck> health()
Get the health of an instance.boolean
Returns whether Gzip compress for http request body is enabled.setLogLevel
(com.influxdb.LogLevel logLevel) Set the log level for the request and response information.Methods inherited from class com.influxdb.client.internal.AbstractInfluxDBClient
close, health
Methods inherited from class com.influxdb.internal.AbstractRestClient
execute, getLogLevel, ping, responseToError, setLogLevel, toInfluxException, version
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.influxdb.client.reactive.InfluxDBClientReactive
close
-
Constructor Details
-
InfluxDBClientReactiveImpl
-
-
Method Details
-
getQueryReactiveApi
Description copied from interface:InfluxDBClientReactive
Create a new Query client.- Specified by:
getQueryReactiveApi
in interfaceInfluxDBClientReactive
- Returns:
- the new client instance for the Query API
-
getWriteReactiveApi
Description copied from interface:InfluxDBClientReactive
Create a new Write client.- Specified by:
getWriteReactiveApi
in interfaceInfluxDBClientReactive
- Returns:
- the new client instance for the Write API
-
getWriteReactiveApi
Description copied from interface:InfluxDBClientReactive
Create a new Write client.- Specified by:
getWriteReactiveApi
in interfaceInfluxDBClientReactive
- Parameters:
writeOptions
- the writes configuration- Returns:
- the new client instance for the Write API
-
health
Description copied from interface:InfluxDBClientReactive
Get the health of an instance.- Specified by:
health
in interfaceInfluxDBClientReactive
- Returns:
- health of an instance
-
getLogLevel
@Nonnull public com.influxdb.LogLevel getLogLevel()- Specified by:
getLogLevel
in interfaceInfluxDBClientReactive
- Returns:
- the
LogLevel
that is used for logging requests and responses
-
setLogLevel
Description copied from interface:InfluxDBClientReactive
Set the log level for the request and response information.- Specified by:
setLogLevel
in interfaceInfluxDBClientReactive
- Parameters:
logLevel
- the log level to set.- Returns:
- the InfluxDBClient instance to be able to use it in a fluent manner.
-
enableGzip
Description copied from interface:InfluxDBClientReactive
Enable Gzip compress for http requests. Currently only the "Write" and "Query" endpoints supports the Gzip compression.- Specified by:
enableGzip
in interfaceInfluxDBClientReactive
- Returns:
- the
InfluxDBClient
instance to be able to use it in a fluent manner.
-
disableGzip
Description copied from interface:InfluxDBClientReactive
Disable Gzip compress for http request body.- Specified by:
disableGzip
in interfaceInfluxDBClientReactive
- Returns:
- the
InfluxDBClient
instance to be able to use it in a fluent manner.
-
isGzipEnabled
public boolean isGzipEnabled()Description copied from interface:InfluxDBClientReactive
Returns whether Gzip compress for http request body is enabled.- Specified by:
isGzipEnabled
in interfaceInfluxDBClientReactive
- Returns:
- true if gzip is enabled.
-