org.ldaptive.pool
Interface PooledConnectionProxy

All Superinterfaces:
InvocationHandler
All Known Implementing Classes:
AbstractConnectionPool.DefaultPooledConnectionProxy

public interface PooledConnectionProxy
extends InvocationHandler

Provides an interface for metadata surrounding a connection that is participating in the connection pool.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Method Summary
 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.
 
Methods inherited from interface java.lang.reflect.InvocationHandler
invoke
 

Method Detail

getConnectionPool

ConnectionPool getConnectionPool()
Returns the connection pool that this proxy is participating in.

Returns:
connection pool

getConnection

Connection getConnection()
Returns the connection that is being proxied.

Returns:
underlying connection

getCreatedTime

long getCreatedTime()
Returns the time this proxy was created.

Returns:
creation timestamp in milliseconds

getPooledConnectionStatistics

PooledConnectionStatistics getPooledConnectionStatistics()
Returns the statistics associated with this connection's activity in the pool.

Returns:
pooled connection statistics


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.