Package org.ldaptive.pool
Interface PooledConnectionProxy
- All Superinterfaces:
InvocationHandler
- All Known Implementing Classes:
AbstractConnectionPool.DefaultPooledConnectionProxy
Provides an interface for metadata surrounding a connection that is participating in the connection pool.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the connection that is being proxied.Returns the connection pool that this proxy is participating in.long
Returns the time this proxy was created.Returns the statistics associated with this connection's activity in the pool.Methods inherited from interface java.lang.reflect.InvocationHandler
invoke
-
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
-