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
public class

BasicPoolEntryRef

extends WeakReference <T>
java.lang.Object
   ↳ 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.

Summary

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.
[Expand]
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.

Parameters
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.

Returns
  • the planned route