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.Returns the time this proxy was created.intReturns the maximum size of the connection pool that this proxy is participating in.intReturns the minimum size of the connection pool that this proxy is participating in.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
Instant 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
-
getMinPoolSize
int getMinPoolSize()Returns the minimum size of the connection pool that this proxy is participating in.- Returns:
- minimum pool size
-
getMaxPoolSize
int getMaxPoolSize()Returns the maximum size of the connection pool that this proxy is participating in.- Returns:
- maximum pool size
-