Package io.aether.clickhouse
Class ClickHouseLogger
java.lang.Object
io.aether.clickhouse.ClickHouseLogger
- All Implemented Interfaces:
AutoCloseable
High-performance asynchronous logger for ClickHouse.
It dynamically adds new columns to the target table using ALTER TABLE IF NOT EXISTS.
-
Constructor Summary
ConstructorsConstructorDescriptionClickHouseLogger(String clickHouseUrl) Initializes the logger from a URL in the format http(s)://user:password@host[:port]/database/table -
Method Summary
-
Constructor Details
-
ClickHouseLogger
Initializes the logger from a URL in the format http(s)://user:password@host[:port]/database/table- Parameters:
clickHouseUrl- The full URL to ClickHouse including database and table
-
-
Method Details
-
save
-
close
public void close()Clears any remaining buffer contents and stops the scheduler upon application shutdown.- Specified by:
closein interfaceAutoCloseable
-