Package org.apache.http.impl.conn.tsccm
Interface PoolEntryRequest
-
@Deprecated public interface PoolEntryRequestDeprecated.(4.2) useFutureEncapsulates a request for aBasicPoolEntry.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidabortRequest()Deprecated.Aborts the active or next call togetPoolEntry(long, TimeUnit).BasicPoolEntrygetPoolEntry(long timeout, java.util.concurrent.TimeUnit timeUnit)Deprecated.Obtains a pool entry with a connection within the given timeout.
-
-
-
Method Detail
-
getPoolEntry
BasicPoolEntry getPoolEntry(long timeout, java.util.concurrent.TimeUnit timeUnit) throws java.lang.InterruptedException, ConnectionPoolTimeoutException
Deprecated.Obtains a pool entry with a connection within the given timeout. IfabortRequest()is called before this completes anInterruptedExceptionis thrown.- Parameters:
timeout- the timeout, 0 or negative for no timeouttimeUnit- the unit for thetimeout, may benullonly if there is no timeout- Returns:
- pool entry holding a connection for the route
- Throws:
ConnectionPoolTimeoutException- if the timeout expiredjava.lang.InterruptedException- if the calling thread was interrupted or the request was aborted
-
abortRequest
void abortRequest()
Deprecated.Aborts the active or next call togetPoolEntry(long, TimeUnit).
-
-