ANTS v2.0 API

ants.core
Class NodeCache.EventHandler

java.lang.Object
  |
  +--ants.core.NodeCache.EventHandler
Enclosing class:
NodeCache

public abstract static class NodeCache.EventHandler
extends java.lang.Object

Elements of this type in the node cache will receive calls when one of a set of events occurs.

XXX Not sure if this is useful or not, and it can probably be done better


Constructor Summary
NodeCache.EventHandler()
           
 
Method Summary
 int collected()
          This is called when this element is up for collection, the return value specifies the new expiration time.
 void removed()
          This is called when the element is manually removed from from the cache.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeCache.EventHandler

public NodeCache.EventHandler()
Method Detail

removed

public void removed()
This is called when the element is manually removed from from the cache.

collected

public int collected()
This is called when this element is up for collection, the return value specifies the new expiration time. Zero is returned if the element should really be collected

ANTS v2.0 API

This documentation is Copyright (C) 1998-2001 The University of Utah and the University of Washington. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for ANTS v2.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/