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()
PooledConnectionProxy
getConnectionPool
in interface PooledConnectionProxy
public Connection getConnection()
PooledConnectionProxy
getConnection
in interface PooledConnectionProxy
public long getCreatedTime()
PooledConnectionProxy
getCreatedTime
in interface PooledConnectionProxy
public PooledConnectionStatistics getPooledConnectionStatistics()
PooledConnectionProxy
getPooledConnectionStatistics
in interface PooledConnectionProxy
Copyright © 2023. All rights reserved.