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