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

java.lang.Object
  extended by net.sf.jbaobab.expirable.InternalHandler<E>
All Implemented Interfaces:
ExpirationHandler<E>

public class InternalHandler<E>
extends Object
implements ExpirationHandler<E>

An ExpirationHandler implementation for removing elements in a collection, and handling expired/removed objects with another ExpirationHandler.

Author:
Oakyoon Cha

Nested Class Summary
static interface InternalHandler.Remover<E>
          An interface for removing elements in a collection.
 
Nested classes/interfaces inherited from interface net.sf.jbaobab.expirable.ExpirationHandler
ExpirationHandler.NullHandler
 
Field Summary
 
Fields inherited from interface net.sf.jbaobab.expirable.ExpirationHandler
NULL
 
Constructor Summary
InternalHandler(InternalHandler.Remover<E> remover)
           
InternalHandler(InternalHandler.Remover<E> remover, ExpirationHandler<E> handler)
           
 
Method Summary
 void expired(E element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalHandler

public InternalHandler(InternalHandler.Remover<E> remover,
                       ExpirationHandler<E> handler)

InternalHandler

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

expired

public void expired(E element)
Specified by:
expired in interface ExpirationHandler<E>