protected class AbstractConnectionPool.DefaultPooledConnectionProxy extends Object implements PooledConnectionProxy
| Constructor and Description |
|---|
DefaultPooledConnectionProxy(Connection c,
Response<Void> r)
Creates a new pooled connection.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
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.
|
int |
hashCode() |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
public DefaultPooledConnectionProxy(Connection c, Response<Void> r)
c - connection to participate in this poolr - response produced by opening the connectionpublic ConnectionPool getConnectionPool()
PooledConnectionProxygetConnectionPool in interface PooledConnectionProxypublic Connection getConnection()
PooledConnectionProxygetConnection in interface PooledConnectionProxypublic long getCreatedTime()
PooledConnectionProxygetCreatedTime in interface PooledConnectionProxypublic PooledConnectionStatistics getPooledConnectionStatistics()
PooledConnectionProxygetPooledConnectionStatistics in interface PooledConnectionProxyCopyright © 2023. All rights reserved.