Package org.apache.http.impl.conn.tsccm
Class BasicPoolEntryRef
public class BasicPoolEntryRef extends WeakReference<BasicPoolEntry>
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.-
Field Summary
Fields inherited from class java.lang.ref.Reference
pendingNext -
Constructor Summary
Constructors Constructor Description BasicPoolEntryRef(BasicPoolEntry entry, ReferenceQueue<Object> queue)Creates a new reference to a pool entry. -
Method Summary
Methods inherited from class java.lang.ref.Reference
clear, enqueue, enqueueInternal, get, isEnqueued
-
Constructor Details
-
BasicPoolEntryRef
Creates a new reference to a pool entry.- Parameters:
entry- the pool entry, must not benullqueue- the reference queue, ornull
-
-
Method Details
-
getRoute
Obtain the planned route for the referenced entry. The planned route is still available, even if the entry is gone.- Returns:
- the planned route
-