Interface Pool

All Superinterfaces:
io.agroal.api.configuration.AgroalDataSourceConfiguration.MetricsEnabledListener, AutoCloseable, io.agroal.api.transaction.TransactionIntegration.ResourceRecoveryFactory
All Known Implementing Classes:
ConnectionPool, Poolless

public interface Pool extends io.agroal.api.configuration.AgroalDataSourceConfiguration.MetricsEnabledListener, AutoCloseable, io.agroal.api.transaction.TransactionIntegration.ResourceRecoveryFactory
Author:
Luis Barreiro
  • Method Details

    • init

      void init()
    • getConnection

      Connection getConnection() throws SQLException
      Throws:
      SQLException
    • getReadOnlyConnection

      Connection getReadOnlyConnection() throws SQLException
      Throws:
      SQLException
    • getConfiguration

      io.agroal.api.configuration.AgroalConnectionPoolConfiguration getConfiguration()
    • getMetrics

      io.agroal.api.AgroalDataSourceMetrics getMetrics()
    • getListeners

      io.agroal.api.AgroalDataSourceListener[] getListeners()
    • getPoolInterceptors

      List<io.agroal.api.AgroalPoolInterceptor> getPoolInterceptors()
    • setPoolInterceptors

      void setPoolInterceptors(Collection<? extends io.agroal.api.AgroalPoolInterceptor> list)
    • returnConnectionHandler

      void returnConnectionHandler(ConnectionHandler handler) throws SQLException
      Throws:
      SQLException
    • flushPool

      void flushPool(io.agroal.api.AgroalDataSource.FlushMode mode)
    • isHealthy

      boolean isHealthy(boolean newConnection) throws SQLException
      Throws:
      SQLException
    • defaultJdbcIsolationLevel

      int defaultJdbcIsolationLevel()
    • close

      void close()
      Specified by:
      close in interface AutoCloseable
    • activeCount

      long activeCount()
    • maxUsedCount

      long maxUsedCount()
    • availableCount

      long availableCount()
    • awaitingCount

      long awaitingCount()
    • resetMaxUsedCount

      void resetMaxUsedCount()