org.apache.commons.cache
Class StaleObjectEvictor

java.lang.Object
  extended by org.apache.commons.cache.StaleObjectEvictor
All Implemented Interfaces:
Serializable, Runnable

public class StaleObjectEvictor
extends Object
implements Runnable, Serializable

tk.

Version:
$Id: StaleObjectEvictor.java 155435 2005-02-26 13:17:27Z dirkv $
Author:
Rodney Waldhoff
See Also:
Serialized Form

Field Summary
protected  boolean _cancelled
           
protected  CachedObjectIterator _iterator
           
protected  int _objsBetweenNaps
           
protected  long _sleepTimeMillis
           
static int DEFAULT_OBJECTS_BETWEEN_NAPS
           
static long DEFAULT_SLEEP_TIME_MILLIS
           
 
Constructor Summary
StaleObjectEvictor(CachedObjectIterator it)
           
StaleObjectEvictor(CachedObjectIterator it, int objsBetweenNaps)
           
StaleObjectEvictor(CachedObjectIterator it, int objsBetweenNaps, long sleepTimeMillis)
           
StaleObjectEvictor(CachedObjectIterator it, long sleepTimeMillis)
           
 
Method Summary
 void cancel()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_OBJECTS_BETWEEN_NAPS

public static final transient int DEFAULT_OBJECTS_BETWEEN_NAPS

DEFAULT_SLEEP_TIME_MILLIS

public static final transient long DEFAULT_SLEEP_TIME_MILLIS

_objsBetweenNaps

protected int _objsBetweenNaps

_sleepTimeMillis

protected long _sleepTimeMillis

_iterator

protected CachedObjectIterator _iterator

_cancelled

protected boolean _cancelled
Constructor Detail

StaleObjectEvictor

public StaleObjectEvictor(CachedObjectIterator it)

StaleObjectEvictor

public StaleObjectEvictor(CachedObjectIterator it,
                          int objsBetweenNaps)

StaleObjectEvictor

public StaleObjectEvictor(CachedObjectIterator it,
                          long sleepTimeMillis)

StaleObjectEvictor

public StaleObjectEvictor(CachedObjectIterator it,
                          int objsBetweenNaps,
                          long sleepTimeMillis)
Method Detail

cancel

public void cancel()

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.