Interface PooledConnectionProxy

All Superinterfaces:
InvocationHandler
All Known Implementing Classes:
AbstractConnectionPool.DefaultPooledConnectionProxy

public interface PooledConnectionProxy extends InvocationHandler
Provides an interface for metadata surrounding a connection that is participating in the connection pool.
  • Method Details

    • getConnectionPool

      ConnectionPool getConnectionPool()
      Returns the connection pool that this proxy is participating in.
      Returns:
      connection pool
    • getConnection

      Connection getConnection()
      Returns the connection that is being proxied.
      Returns:
      underlying connection
    • getCreatedTime

      long getCreatedTime()
      Returns the time this proxy was created.
      Returns:
      creation timestamp in milliseconds
    • getPooledConnectionStatistics

      PooledConnectionStatistics getPooledConnectionStatistics()
      Returns the statistics associated with this connection's activity in the pool.
      Returns:
      pooled connection statistics