Package | Description |
---|---|
org.apache.hc.core5.pool |
Client side connection pool component APIs.
|
Modifier and Type | Method and Description |
---|---|
Future<PoolEntry<T,C>> |
StrictConnPool.lease(T route,
Object state) |
Future<PoolEntry<T,C>> |
LaxConnPool.lease(T route,
Object state) |
Future<PoolEntry<T,C>> |
ConnPool.lease(T route,
Object state,
Timeout requestTimeout,
FutureCallback<PoolEntry<T,C>> callback)
Attempts to lease a connection for the given route and with the given
state from the pool.
|
Future<PoolEntry<T,C>> |
StrictConnPool.lease(T route,
Object state,
Timeout requestTimeout,
FutureCallback<PoolEntry<T,C>> callback) |
Future<PoolEntry<T,C>> |
LaxConnPool.lease(T route,
Object state,
Timeout requestTimeout,
FutureCallback<PoolEntry<T,C>> callback) |
Modifier and Type | Method and Description |
---|---|
void |
ConnPool.release(PoolEntry<T,C> entry,
boolean reusable)
Releases the pool entry back to the pool.
|
void |
StrictConnPool.release(PoolEntry<T,C> entry,
boolean reusable) |
void |
LaxConnPool.release(PoolEntry<T,C> entry,
boolean reusable) |
Modifier and Type | Method and Description |
---|---|
void |
StrictConnPool.enumAvailable(Callback<PoolEntry<T,C>> callback)
Enumerates all available connections.
|
void |
LaxConnPool.enumAvailable(Callback<PoolEntry<T,C>> callback) |
void |
StrictConnPool.enumLeased(Callback<PoolEntry<T,C>> callback)
Enumerates all leased connections.
|
void |
LaxConnPool.enumLeased(Callback<PoolEntry<T,C>> callback) |
Future<PoolEntry<T,C>> |
ConnPool.lease(T route,
Object state,
Timeout requestTimeout,
FutureCallback<PoolEntry<T,C>> callback)
Attempts to lease a connection for the given route and with the given
state from the pool.
|
Future<PoolEntry<T,C>> |
StrictConnPool.lease(T route,
Object state,
Timeout requestTimeout,
FutureCallback<PoolEntry<T,C>> callback) |
Future<PoolEntry<T,C>> |
LaxConnPool.lease(T route,
Object state,
Timeout requestTimeout,
FutureCallback<PoolEntry<T,C>> callback) |
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.