Build 1.0_r1(from source)

Class BasicPoolEntryRef

  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.WeakReference<BasicPoolEntry>
          extended by org.apache.http.impl.conn.tsccm.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.

Constructor Summary
BasicPoolEntryRef(BasicPoolEntry entry, ReferenceQueue<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,
                         ReferenceQueue<Object> queue)
Creates a new reference to a pool entry.

entry - the pool entry, must not be null
queue - the reference queue, or null
Method Detail


public final HttpRoute getRoute()
Obtain the planned route for the referenced entry. The planned route is still available, even if the entry is gone.

the planned route

Build 1.0_r1(from source)

Please submit a feedback, bug or feature