Package org.apache.http.impl.conn.tsccm
Interface PoolEntryRequest
Deprecated.
Encapsulates a request for a
BasicPoolEntry
.- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Aborts the active or next call togetPoolEntry(long, TimeUnit)
.getPoolEntry
(long timeout, TimeUnit timeUnit) Deprecated.Obtains a pool entry with a connection within the given timeout.
-
Method Details
-
getPoolEntry
BasicPoolEntry getPoolEntry(long timeout, TimeUnit timeUnit) throws InterruptedException, ConnectionPoolTimeoutException Deprecated.Obtains a pool entry with a connection within the given timeout. IfabortRequest()
is called before this completes anInterruptedException
is thrown.- Parameters:
timeout
- the timeout, 0 or negative for no timeouttimeUnit
- the unit for thetimeout
, may benull
only if there is no timeout- Returns:
- pool entry holding a connection for the route
- Throws:
ConnectionPoolTimeoutException
- if the timeout expiredInterruptedException
- if the calling thread was interrupted or the request was aborted
-
abortRequest
void abortRequest()Deprecated.Aborts the active or next call togetPoolEntry(long, TimeUnit)
.
-
Future