src/main/java/io/jboot/db/driver/OfficialClickHouseDriver.java
@Override
    public void scheduleConnectionsCleaning(int rate, TimeUnit timeUnit) {
        ScheduledConnectionCleaner.INSTANCE.scheduleAtFixedRate(() -> {
            try {
                for (OfficialClickHouseConnection connection : connections.keySet()) {
                    connection.cleanConnections();
                }
            } catch (Exception e) {
                logger.error("error evicting connections: " + e);
            }
        }, 0, rate, timeUnit);
    }
/**
     * Schedules connections cleaning at a rate. Turned off by default.
     * See https://hc.apache.org/httpcomponents-client-4.5.x/tutorial/html/connmgmt.html#d5e418
     *
     * @param rate     period when checking would be performed
     * @param timeUnit time unit of rate
     */
Schedules connections cleaning at a rate. Turned off by default.

@param rate     period when checking would be performed
@param timeUnit time unit of rate
Schedules connections cleaning at a rate . Turned off by default . @param rate period when checking would be performed @param timeUnit time unit of rate
@Override
    public void scheduleConnectionsCleaning(int rate, TimeUnit timeUnit) {
        ScheduledConnectionCleaner.INSTANCE.scheduleAtFixedRate(() -> {
            try {
                for (OfficialClickHouseConnection connection : connections.keySet()) {
                    connection.cleanConnections();
                }
            } catch (Exception e) {
                logger.error("error evicting connections: " + e);
            }
        }, 0, rate, timeUnit);
    }
@ Override public void scheduleConnectionsCleaning ( int rate , TimeUnit timeUnit ) { ScheduledConnectionCleaner . INSTANCE . scheduleAtFixedRate ( ( ) -> { try { for ( OfficialClickHouseConnection connection : connections . keySet ( ) ) { connection . cleanConnections ( ) ; } } catch ( Exception e ) { logger . error ( "error evicting connections: " + e ) ; } } , 0 , rate , timeUnit ) ; }
Schedules connections cleaning at a rate.
Schedules connections cleaning at a rate .