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, 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, Timeout null.request timeout. In case of a timeout the request
can get automatically cancelled by the pool. requestTimeout, FutureCallback<PoolEntry<T, C>> operation completion callback. callback)Attempts to lease a connection for the given route and with the given state from the pool. |
| public void |
| lease | back to summary |
|---|---|
| public Future Attempts to lease a connection for the given route and with the given state from the pool. Please note the connection request can get automatically cancelled by the pool in case of a request timeout.
| |
| release | back to summary |
|---|---|
| public void release(PoolEntry<T, C> entry, boolean reusable) Releases the pool entry back to the pool.
| |