org.fjank.jcache
Class CacheSweeper

java.lang.Object
  extended by org.fjank.jcache.CacheSweeper
All Implemented Interfaces:
Runnable

public class CacheSweeper
extends Object
implements Runnable

A Runnable class for Sweeping the cache for expired objects. Either they are serialized to disk, or they are removed from the cache depending on the attributes of the object.

Author:
Frank Karlstrøm

Method Summary
static CacheSweeper getInstance()
          create this sweeper instance.
 void run()
          sweeps the cache and removes invalid objects, waits for cleanInterval seconds, then sweeps again etc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

run

public void run()
sweeps the cache and removes invalid objects, waits for cleanInterval seconds, then sweeps again etc.

Specified by:
run in interface Runnable

getInstance

public static CacheSweeper getInstance()
create this sweeper instance.



Copyright © 2002-2009 Hosted by SourceForge. All Rights Reserved.