net.sf.jbaobab.expirable
Class AbstractExpirableCollection<E>

java.lang.Object
  extended by net.sf.jbaobab.expirable.AbstractExpirableCollection<E>
Direct Known Subclasses:
ExpirableCollection, ExpirableMap

public abstract class AbstractExpirableCollection<E>
extends Object

An abstract base implementation for decorators in net.sf.jbaobab.expirable package.

Author:
Oakyoon Cha

Field Summary
protected  Expirer<E> expirer
           
protected  InternalHandler.Remover<E> remover
           
protected  long timeout
           
 
Constructor Summary
AbstractExpirableCollection(InternalHandler.Remover<E> remover)
           
AbstractExpirableCollection(InternalHandler.Remover<E> remover, long timeout)
           
 
Method Summary
protected  void finalize()
           
 ExpirationHandler<E> getHandler()
           
 ExpirationHandler<E> setHandler(ExpirationHandler<E> handler)
           
 long timeout()
           
 long timeout(long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expirer

protected Expirer<E> expirer

remover

protected InternalHandler.Remover<E> remover

timeout

protected long timeout
Constructor Detail

AbstractExpirableCollection

public AbstractExpirableCollection(InternalHandler.Remover<E> remover,
                                   long timeout)

AbstractExpirableCollection

public AbstractExpirableCollection(InternalHandler.Remover<E> remover)
Method Detail

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

setHandler

public ExpirationHandler<E> setHandler(ExpirationHandler<E> handler)

getHandler

public ExpirationHandler<E> getHandler()

timeout

public long timeout(long timeout)

timeout

public long timeout()