| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the route type that represents the opposite endpoint of a pooled
   connection.E - the type of the pool entry containing a pooled connection.public interface ConnPool<T,E>
ConnPool represents a shared pool connections can be leased from
 and released back to.
| Method Summary | |
|---|---|
|  Future<E> | lease(T route,
      Object state,
      FutureCallback<E> callback)Attempts to lease a connection for the given route and with the given state from the pool. | 
|  void | release(E entry,
        boolean reusable)Releases the pool entry back to the pool. | 
| Method Detail | 
|---|
Future<E> lease(T route,
                Object state,
                FutureCallback<E> callback)
route - route of the connection.state - arbitrary object that represents a particular state
  (usually a security principal or a unique token identifying
  the user whose credentials have been used while establishing the connection).
  May be null.callback - operation completion callback.
void release(E entry,
             boolean reusable)
entry - pool entry leased from the poolreusable - flag indicating whether or not the released connection
   is in a consistent state and is safe for further use.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||