Skip to content

Most visited

Recently visited


BasicPoolEntryRef | Android Developers

to top
Android APIs
public class


extends WeakReference<T>
   ↳ java.lang.ref.Reference<T>
     ↳ java.lang.ref.WeakReference<T>
       ↳ org.apache.http.impl.conn.tsccm.BasicPoolEntryRef

Class Overview

A weak reference to a BasicPoolEntry. This reference explicitly keeps the planned route, so the connection can be reclaimed if it is lost to garbage collection.


Public Constructors
BasicPoolEntryRef(BasicPoolEntry entry, ReferenceQueue<Object> queue)
Creates a new reference to a pool entry.
Public Methods
final HttpRoute getRoute()
Obtain the planned route for the referenced entry.
Inherited Methods
From class java.lang.ref.Reference
From class java.lang.Object

Public Constructors

public BasicPoolEntryRef (BasicPoolEntry entry, ReferenceQueue<Object> queue)

Added in API level 1

Creates a new reference to a pool entry.

entry the pool entry, must not be null
queue the reference queue, or null

Public Methods

public final HttpRoute getRoute ()

Added in API level 1

Obtain the planned route for the referenced entry. The planned route is still available, even if the entry is gone.

  • the planned route
This site uses cookies to store your preferences for site-specific language and display options.


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.