Class InfluxDBTimeSeriesManagerFactory
java.lang.Object
org.eclipse.jnosql.databases.influxdb.communication.InfluxDBTimeSeriesManagerFactory
- All Implemented Interfaces:
AutoCloseable,Function<String,,org.eclipse.jnosql.communication.semistructured.DatabaseManager> org.eclipse.jnosql.communication.semistructured.DatabaseManagerFactory
public class InfluxDBTimeSeriesManagerFactory
extends Object
implements org.eclipse.jnosql.communication.semistructured.DatabaseManagerFactory
Creates time-series managers for databases on one InfluxDB 3 server.
InfluxDB 3 clients are database-bound, so each manager receives its own client. Closing this factory closes every client it created.
-
Method Summary
Modifier and TypeMethodDescriptionTargets an InfluxDB database for subsequent time-series operations.voidclose()Closes all database clients and releases their HTTP and Arrow Flight resources.
-
Method Details
-
apply
Targets an InfluxDB database for subsequent time-series operations.- Specified by:
applyin interfaceFunction<String,org.eclipse.jnosql.communication.semistructured.DatabaseManager> - Parameters:
database- database containing the measurements- Returns:
- a manager connected to the requested database
- Throws:
NullPointerException- ifdatabaseisnullIllegalArgumentException- ifdatabaseis blankIllegalStateException- if this factory is closed
-
close
public void close()Closes all database clients and releases their HTTP and Arrow Flight resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.eclipse.jnosql.communication.semistructured.DatabaseManagerFactory
-