net.spy.factory
Class CacheRefresher

java.lang.Object
  extended by net.spy.SpyObject
      extended by net.spy.factory.CacheRefresher

public class CacheRefresher
extends SpyObject

Cache refresh singleton for scheduling and performing cache clears.


Constructor Summary
protected CacheRefresher()
          Constructor for subclasses of CacheRefresher.
 
Method Summary
static CacheRefresher getInstance()
          Get the singleton cache refresher instance.
 void recache(GenFactory<?> gf, long when, long delay)
          Request a recache of the given factory to get data as of the given date after the given delay.
static void setInstance(CacheRefresher to)
          Set a CacheRefresher instance.
 void shutdown()
          Shut down this cache refresher instance.
 
Methods inherited from class net.spy.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheRefresher

protected CacheRefresher()
Constructor for subclasses of CacheRefresher.

Method Detail

getInstance

public static CacheRefresher getInstance()
Get the singleton cache refresher instance.


setInstance

public static void setInstance(CacheRefresher to)
Set a CacheRefresher instance.


shutdown

public void shutdown()
Shut down this cache refresher instance.


recache

public void recache(GenFactory<?> gf,
                    long when,
                    long delay)
Request a recache of the given factory to get data as of the given date after the given delay.

Parameters:
when - the date we requested the data
delay - how long to wait before refreshing


Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.