|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ref.Reference<T>
java.lang.ref.WeakReference<BasicPoolEntry>
org.apache.http.impl.conn.tsccm.BasicPoolEntryRef
public class BasicPoolEntryRef
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.
| Constructor Summary | |
|---|---|
BasicPoolEntryRef(BasicPoolEntry entry,
java.lang.ref.ReferenceQueue<java.lang.Object> queue)
Creates a new reference to a pool entry. |
|
| Method Summary | |
|---|---|
HttpRoute |
getRoute()
Obtain the planned route for the referenced entry. |
| Methods inherited from class java.lang.ref.Reference |
|---|
clear, enqueue, get, isEnqueued |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicPoolEntryRef(BasicPoolEntry entry,
java.lang.ref.ReferenceQueue<java.lang.Object> queue)
entry - the pool entry, must not be nullqueue - the reference queue, or null| Method Detail |
|---|
public final HttpRoute getRoute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||