freemarker.testcase
Class CacheThread

java.lang.Object
  |
  +--freemarker.testcase.CacheThread
All Implemented Interfaces:
java.lang.Runnable

public final class CacheThread
extends java.lang.Object
implements java.lang.Runnable

Thread for accessing the cache for a set period of time, then exiting. This is used as part of the TestCacheThreaded test case.

Version:
$Id: CacheThread.java,v 1.10 2003/11/28 01:17:06 run2000 Exp $
Author:
Nicholas Cull
See Also:
CacheThread2, CacheThread3, CacheThread4, CacheThread5, TestCacheThreaded

Constructor Summary
CacheThread(long nPeriod, Cache cCache)
          Creates new CacheThread.
 
Method Summary
 void run()
          Run the test for a given period of time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheThread

public CacheThread(long nPeriod,
                   Cache cCache)
Creates new CacheThread.
Method Detail

run

public void run()
Run the test for a given period of time.
Specified by:
run in interface java.lang.Runnable