@Deprecated public class BasicPoolEntryRef extends java.lang.ref.WeakReference<BasicPoolEntry>
BasicPoolEntry
.
This reference explicitly keeps the planned route, so the connection
can be reclaimed if it is lost to garbage collection.Modifier and Type | Field and Description |
---|---|
private HttpRoute |
route
Deprecated.
The planned route of the entry.
|
Constructor and Description |
---|
BasicPoolEntryRef(BasicPoolEntry entry,
java.lang.ref.ReferenceQueue<java.lang.Object> queue)
Deprecated.
Creates a new reference to a pool entry.
|
Modifier and Type | Method and Description |
---|---|
HttpRoute |
getRoute()
Deprecated.
Obtain the planned route for the referenced entry.
|
private final HttpRoute route
public BasicPoolEntryRef(BasicPoolEntry entry, java.lang.ref.ReferenceQueue<java.lang.Object> queue)
entry
- the pool entry, must not be null
queue
- the reference queue, or null
public final HttpRoute getRoute()