Class BasicPoolEntryRef

java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.WeakReference<BasicPoolEntry>
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 Details

  • Method Details

    • getRoute

      public final HttpRoute 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