Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
Added in API level 1
public interface

PoolEntryRequest

org.apache.http.impl.conn.tsccm.PoolEntryRequest

Class Overview

Encapsulates a request for a BasicPoolEntry .

Summary

Public Methods
abstract void abortRequest ()
Aborts the active or next call to getPoolEntry(long, TimeUnit) .
abstract BasicPoolEntry getPoolEntry (long timeout, TimeUnit tunit)
Obtains a pool entry with a connection within the given timeout.

Public Methods

public abstract void abortRequest ()

Added in API level 1

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

public abstract BasicPoolEntry getPoolEntry (long timeout, TimeUnit tunit)

Added in API level 1

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

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