ConnPool represents a shared pool connections can be leased from
and released back to.
| Modifier and Type | Method and Description |
|---|---|
| public Future | Returns: future for a leased pool entry.route of the connection. route, final Object 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 state, final FutureCallback<E> null.operation completion callback. callback)Attempts to lease a connection for the given route and with the given state from the pool. |
| public void | release(E
pool entry leased from the pool entry, boolean flag indicating whether or not the released connection
is in a consistent state and is safe for further use. reusable)Releases the pool entry back to the pool. |
| lease | back to summary |
|---|---|
| public Future Attempts to lease a connection for the given route and with the given state from the pool.
| |
| release | back to summary |
|---|---|
| public void release(E entry, boolean reusable) Releases the pool entry back to the pool.
| |