|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.pool.AbstractConnectionPool.DefaultPooledConnectionProxy
protected class AbstractConnectionPool.DefaultPooledConnectionProxy
Contains a connection that is participating in this pool. Used to track how long a connection has been in use and override certain method invocations.
| Constructor Summary | |
|---|---|
AbstractConnectionPool.DefaultPooledConnectionProxy(Connection c,
Response<Void> r)
Creates a new pooled connection. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractConnectionPool.DefaultPooledConnectionProxy(Connection c,
Response<Void> r)
c - connection to participate in this poolr - response produced by opening the connection| Method Detail |
|---|
public ConnectionPool getConnectionPool()
getConnectionPool in interface PooledConnectionProxypublic Connection getConnection()
getConnection in interface PooledConnectionProxypublic long getCreatedTime()
getCreatedTime in interface PooledConnectionProxypublic PooledConnectionStatistics getPooledConnectionStatistics()
getPooledConnectionStatistics in interface PooledConnectionProxypublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
invoke in interface InvocationHandlerThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||