Package org.ldaptive.pool
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Connection
getConnection()
Returns the connection that is being proxied.ConnectionPool
getConnectionPool()
Returns the connection pool that this proxy is participating in.long
getCreatedTime()
Returns the time this proxy was created.PooledConnectionStatistics
getPooledConnectionStatistics()
Returns the statistics associated with this connection's activity in the pool.-
Methods inherited from interface java.lang.reflect.InvocationHandler
invoke
-
-
-
-
Method Detail
-
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
-
-