Top Description Methods
org.apache.http.impl.conn.tsccm

public Interface PoolEntryRequest

Annotations
@Deprecated
Imports
java.util.concurrent.TimeUnit, org.apache.http.conn.ConnectionPoolTimeoutException

Deprecated

(4.2) use java.util.concurrent.Future

Encapsulates a request for a BasicPoolEntry.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public void
abortRequest()

Aborts the active or next call to getPoolEntry(long, TimeUnit).

public BasicPoolEntry

Returns:

pool entry holding a connection for the route
getPoolEntry
(long
the timeout, 0 or negative for no timeout
timeout
,
TimeUnit
the unit for the timeout, may be null only if there is no timeout
timeUnit
)

Deprecated as a consequence of BasicPoolEntry being deprecated.
Obtains a pool entry with a connection within the given timeout.

Method Detail

abortRequestback to summary
public void abortRequest()

Aborts the active or next call to getPoolEntry(long, TimeUnit).

getPoolEntryback to summary
public BasicPoolEntry getPoolEntry(long timeout, TimeUnit timeUnit) throws InterruptedException, ConnectionPoolTimeoutException

Deprecated

as a consequence of BasicPoolEntry being deprecated. See corresponding docs for further information.

Obtains a pool entry with a connection within the given timeout. If abortRequest() is called before this completes an InterruptedException is thrown.

Parameters
timeout:long

the timeout, 0 or negative for no timeout

timeUnit:TimeUnit

the unit for the timeout, may be null only if there is no timeout

Returns:BasicPoolEntry

pool entry holding a connection for the route

Exceptions
InterruptedException:
if the calling thread was interrupted or the request was aborted
ConnectionPoolTimeoutException:
if the timeout expired