org.apache.http.impl.nio.pool
Class PoolEntry<T>

java.lang.Object
  extended by org.apache.http.impl.nio.pool.PoolEntry<T>

public abstract class PoolEntry<T>
extends Object


Constructor Summary
PoolEntry(T route, org.apache.http.nio.reactor.IOSession session, long timeToLive, TimeUnit tunit)
           
 
Method Summary
 long getCreated()
           
 long getExpiry()
           
protected  org.apache.http.nio.reactor.IOSession getIOSession()
           
protected  T getRoute()
           
protected  Object getState()
           
 long getUpdated()
           
 long getValidUnit()
           
 boolean isExpired(long now)
           
protected  void setState(Object state)
           
 String toString()
           
 void updateExpiry(long time, TimeUnit tunit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PoolEntry

public PoolEntry(T route,
                 org.apache.http.nio.reactor.IOSession session,
                 long timeToLive,
                 TimeUnit tunit)
Method Detail

getRoute

protected T getRoute()

getIOSession

protected org.apache.http.nio.reactor.IOSession getIOSession()

getCreated

public long getCreated()

getValidUnit

public long getValidUnit()

getState

protected Object getState()

setState

protected void setState(Object state)

getUpdated

public long getUpdated()

getExpiry

public long getExpiry()

updateExpiry

public void updateExpiry(long time,
                         TimeUnit tunit)

isExpired

public boolean isExpired(long now)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.