Top Description Fields Constructors Methods
org.apache.http.impl.conn.tsccm

public Class BasicPoolEntryRef

extends WeakReference<BasicPoolEntry>
Class Inheritance
Annotations
@Deprecated
Imports
java.lang.ref.ReferenceQueue, .WeakReference, org.apache.http.conn.routing.HttpRoute, org.apache.http.util.Args

Deprecated

(4.2) do not use

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.
Since
4.0

Field Summary

Modifier and TypeField and Description
private final HttpRoute
route

The planned route of the entry.

Constructor Summary

AccessConstructor and Description
public
BasicPoolEntryRef(final BasicPoolEntry
the pool entry, must not be null
entry
,
final ReferenceQueue<Object>
the reference queue, or null
queue
)

Deprecated as a consequence of BasicPoolEntry being deprecated.
Creates a new reference to a pool entry.

Method Summary

Modifier and TypeMethod and Description
public final HttpRoute

Returns:

the planned route
getRoute
()

Obtain the planned route for the referenced entry.

Field Detail

routeback to summary
private final HttpRoute route

The planned route of the entry.

Constructor Detail

BasicPoolEntryRefback to summary
public BasicPoolEntryRef(final BasicPoolEntry entry, final ReferenceQueue<Object> queue)

Deprecated

as a consequence of BasicPoolEntry being deprecated. See corresponding docs for further information.

Creates a new reference to a pool entry.

Parameters
entry:BasicPoolEntry

the pool entry, must not be null

queue:ReferenceQueue<Object>

the reference queue, or null

Method Detail

getRouteback to summary
public final HttpRoute getRoute()

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

Returns:HttpRoute

the planned route