protected class AbstractConnectionPool.DefaultPooledConnectionProxy extends java.lang.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<java.lang.Void> |
openResponse
Response produced when the connection was opened.
|
private PooledConnectionStatistics |
statistics
Statistics for this connection.
|
| Constructor and Description |
|---|
DefaultPooledConnectionProxy(Connection c,
Response<java.lang.Void> r)
Creates a new pooled connection.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.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() |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
private static final int HASH_CODE_SEED
private final Connection conn
private Response<java.lang.Void> openResponse
private final long createdTime
private final PooledConnectionStatistics statistics
public DefaultPooledConnectionProxy(Connection c, Response<java.lang.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 PooledConnectionProxypublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwable