protected class AbstractConnectionPool.DefaultPooledConnectionProxy extends Object implements PooledConnectionProxy
| Modifier and Type | Field and Description |
|---|---|
private Connection |
conn
Underlying connection.
|
private long |
createdTime
Time this connection was created.
|
private static int |
HASH_CODE_SEED
hash code seed.
|
private Response<Void> |
openResponse
Response produced when the connection was opened.
|
private PooledConnectionStatistics |
statistics
Statistics for this connection.
|
| 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) |
private static final int HASH_CODE_SEED
private final Connection conn
private final long createdTime
private final PooledConnectionStatistics statistics
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 © 2003-2019 Virginia Tech. All Rights Reserved.