Class AbstractConnectionPoolWrapper<T>

java.lang.Object
is.codion.common.db.pool.AbstractConnectionPoolWrapper<T>
Type Parameters:
T - the type representing the actual pool object
All Implemented Interfaces:
ConnectionPoolWrapper

public abstract class AbstractConnectionPoolWrapper<T> extends Object implements ConnectionPoolWrapper
A default base implementation of the ConnectionPool wrapper, handling the collection of statistics
  • Constructor Details

    • AbstractConnectionPoolWrapper

      protected AbstractConnectionPoolWrapper(ConnectionFactory connectionFactory, User user, DataSource dataSource, Function<DataSource,T> poolFactory)
      Instantiates a new AbstractConnectionPoolWrapper instance.
      Parameters:
      connectionFactory - the connection factory
      user - the connection pool user
      dataSource - the data source
      poolFactory - creates the actual connection pool based on the given data source
  • Method Details