@Deprecated public class BasicPoolEntryRef extends WeakReference<BasicPoolEntry>
BasicPoolEntry
.
This reference explicitly keeps the planned route, so the connection
can be reclaimed if it is lost to garbage collection.Constructor and Description |
---|
BasicPoolEntryRef(BasicPoolEntry entry,
ReferenceQueue<Object> queue)
Deprecated.
Creates a new reference to a pool entry.
|
public BasicPoolEntryRef(BasicPoolEntry entry, ReferenceQueue<Object> queue)
entry
- the pool entry, must not be null
queue
- the reference queue, or null
public final HttpRoute getRoute()
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.