Class BasicPoolEntryRef


@Deprecated public class BasicPoolEntryRef extends WeakReference<BasicPoolEntry>
Deprecated.
(4.2) do not use
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.
Since:
4.0
  • Constructor Details

    • BasicPoolEntryRef

      public BasicPoolEntryRef(BasicPoolEntry entry, ReferenceQueue<Object> queue)
      Deprecated.
      Creates a new reference to a pool entry.
      Parameters:
      entry - the pool entry, must not be null
      queue - the reference queue, or null
  • Method Details

    • 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