net.sf.jbaobab.expirable
Class AbstractExpirableCollection<E>
java.lang.Object
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
expirer
protected Expirer<E> expirer
remover
protected InternalHandler.Remover<E> remover
timeout
protected long timeout
AbstractExpirableCollection
public AbstractExpirableCollection(InternalHandler.Remover<E> remover,
long timeout)
AbstractExpirableCollection
public AbstractExpirableCollection(InternalHandler.Remover<E> remover)
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()