Package org.apache.http.impl.conn.tsccm
Class BasicPoolEntryRef
- java.lang.Object
-
- java.lang.ref.Reference<T>
-
- java.lang.ref.WeakReference<BasicPoolEntry>
-
- org.apache.http.impl.conn.tsccm.BasicPoolEntryRef
-
@Deprecated public class BasicPoolEntryRef extends java.lang.ref.WeakReference<BasicPoolEntry>
Deprecated.(4.2) do not useA weak reference to aBasicPoolEntry
. This reference explicitly keeps the planned route, so the connection can be reclaimed if it is lost to garbage collection.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description BasicPoolEntryRef(BasicPoolEntry entry, java.lang.ref.ReferenceQueue<java.lang.Object> queue)
Deprecated.Creates a new reference to a pool entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HttpRoute
getRoute()
Deprecated.Obtain the planned route for the referenced entry.
-
-
-
Constructor Detail
-
BasicPoolEntryRef
public BasicPoolEntryRef(BasicPoolEntry entry, java.lang.ref.ReferenceQueue<java.lang.Object> queue)
Deprecated.Creates a new reference to a pool entry.- Parameters:
entry
- the pool entry, must not benull
queue
- the reference queue, ornull
-
-
Method Detail
-
getRoute
public final HttpRoute getRoute()
Deprecated.Obtain the planned route for the referenced entry. The planned route is still available, even if the entry is gone.- Returns:
- the planned route
-
-