FileDocCategorySizeDatePackage
BasicPoolEntry.javaAPI DocAndroid 1.5 API3083Wed May 06 22:41:10 BST 2009org.apache.http.impl.conn.tsccm

BasicPoolEntry

public class BasicPoolEntry extends AbstractPoolEntry
Basic implementation of a connection pool entry.

Fields Summary
private final BasicPoolEntryRef
reference
A weak reference to this used to detect GC of entries. Pool entries can only be GCed when they are allocated by an application and therefore not referenced with a hard link in the manager.
Constructors Summary
public BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, ReferenceQueue queue)
Creates a new pool entry.

param
op the connection operator
param
route the planned route for the connection
param
queue the reference queue for tracking GC of this entry, or null

        super(op, route);
        if (route == null) {
            throw new IllegalArgumentException("HTTP route may not be null");
        }
        this.reference = new BasicPoolEntryRef(this, queue);
    
Methods Summary
protected final org.apache.http.conn.OperatedClientConnectiongetConnection()

        return super.connection;
    
protected final org.apache.http.conn.routing.HttpRoutegetPlannedRoute()

        return super.route;
    
protected final org.apache.http.impl.conn.tsccm.BasicPoolEntryRefgetWeakRef()

        return this.reference;