FileDocCategorySizeDatePackage
PoolEntryRequest.javaAPI DocAndroid 1.5 API2659Wed May 06 22:41:10 BST 2009org.apache.http.impl.conn.tsccm

PoolEntryRequest

public interface PoolEntryRequest
Encapsulates a request for a {@link BasicPoolEntry}.

Fields Summary
Constructors Summary
Methods Summary
public voidabortRequest()
Aborts the active or next call to {@link #getPoolEntry(long, TimeUnit)}.

public org.apache.http.impl.conn.tsccm.BasicPoolEntrygetPoolEntry(long timeout, java.util.concurrent.TimeUnit tunit)
Obtains a pool entry with a connection within the given timeout. If {@link #abortRequest()} is called before this completes an {@link InterruptedException} is thrown.

param
timeout the timeout, 0 or negative for no timeout
param
tunit the unit for the timeout, may be null only if there is no timeout
return
pool entry holding a connection for the route
throws
ConnectionPoolTimeoutException if the timeout expired
throws
InterruptedException if the calling thread was interrupted or the request was aborted