Since: 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 ()

Since: API Level 1

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

public abstract BasicPoolEntry getPoolEntry (long timeout, TimeUnit tunit)

Since: 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