Skip to content

Most visited

Recently visited

navigation

PoolEntryRequest | Android Developers

to top
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
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.