public class

BasicPoolEntry

extends AbstractPoolEntry
java.lang.Object
   ↳ org.apache.http.impl.conn.AbstractPoolEntry
     ↳ org.apache.http.impl.conn.tsccm.BasicPoolEntry

Class Overview

Basic implementation of a connection pool entry.

Summary

[Expand]
Inherited Fields
From class org.apache.http.impl.conn.AbstractPoolEntry
Public Constructors
BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, ReferenceQueue<Object> queue)
This constructor is deprecated. do not use
BasicPoolEntry(ClientConnectionOperator op, HttpRoute route)
Creates a new pool entry.
BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, long connTTL, TimeUnit timeunit)
Creates a new pool entry with a specified maximum lifetime.
Public Methods
long getCreated()
long getExpiry()
long getUpdated()
long getValidUntil()
boolean isExpired(long now)
void updateExpiry(long time, TimeUnit timeunit)
Protected Methods
final OperatedClientConnection getConnection()
final HttpRoute getPlannedRoute()
final BasicPoolEntryRef getWeakRef()
void shutdownEntry()
Shuts down the entry.
[Expand]
Inherited Methods
From class org.apache.http.impl.conn.AbstractPoolEntry
From class java.lang.Object

Public Constructors

public BasicPoolEntry (ClientConnectionOperator op, HttpRoute route, ReferenceQueue<Object> queue)

Also: HttpClient

This constructor is deprecated.
do not use

public BasicPoolEntry (ClientConnectionOperator op, HttpRoute route)

Also: HttpClient

Creates a new pool entry.

Parameters
op the connection operator
route the planned route for the connection

public BasicPoolEntry (ClientConnectionOperator op, HttpRoute route, long connTTL, TimeUnit timeunit)

Also: HttpClient

Creates a new pool entry with a specified maximum lifetime.

Parameters
op the connection operator
route the planned route for the connection
connTTL maximum lifetime of this entry, <=0 implies "infinity"
timeunit TimeUnit of connTTL

Public Methods

public long getCreated ()

Also: HttpClient

public long getExpiry ()

Also: HttpClient

public long getUpdated ()

Also: HttpClient

public long getValidUntil ()

Also: HttpClient

public boolean isExpired (long now)

Also: HttpClient

public void updateExpiry (long time, TimeUnit timeunit)

Also: HttpClient

Protected Methods

protected final OperatedClientConnection getConnection ()

Also: HttpClient

protected final HttpRoute getPlannedRoute ()

Also: HttpClient

protected final BasicPoolEntryRef getWeakRef ()

Also: HttpClient

protected void shutdownEntry ()

Also: HttpClient

Shuts down the entry. If open(HttpRoute, HttpContext, HttpParams) is in progress, this will cause that open to possibly throw an IOException.