Package org.apache.http.impl.conn.tsccm
Interface PoolEntryRequest
-
@Deprecated public interface PoolEntryRequest
Deprecated.(4.2) useFuture
Encapsulates a request for aBasicPoolEntry
.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
abortRequest()
Deprecated.Aborts the active or next call togetPoolEntry(long, TimeUnit)
.BasicPoolEntry
getPoolEntry(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 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 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)
.
-
-