org.apache.avalon.excalibur.cache.validator
Class TimeoutValidator

java.lang.Object
  |
  +--org.apache.avalon.excalibur.cache.validator.TimeoutValidator
All Implemented Interfaces:
CacheListener, CacheValidator, java.util.EventListener

public class TimeoutValidator
extends java.lang.Object
implements CacheValidator, CacheListener

General timeout cache validator.

Author:
Eung-ju Park

Constructor Summary
TimeoutValidator(long timeout)
           
 
Method Summary
 void added(CacheEvent event)
          Added new item.
 void removed(CacheEvent event)
          Removed item.
 boolean validate(java.lang.Object key, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeoutValidator

public TimeoutValidator(long timeout)
Method Detail

validate

public boolean validate(java.lang.Object key,
                        java.lang.Object value)
Specified by:
validate in interface CacheValidator

added

public void added(CacheEvent event)
Description copied from interface: CacheListener
Added new item.
Specified by:
added in interface CacheListener

removed

public void removed(CacheEvent event)
Description copied from interface: CacheListener
Removed item.
Specified by:
removed in interface CacheListener


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.