|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--org.jwarp.service.cache.CacheUpdateThread
This is the updating thread for the cache utility class. For each cache instance one such thread is intitialised and started. Its task is to call the caches update method from time to time. The updating interval is defined by long representing ms.
| Field Summary | |
(package private) boolean |
running
The running variable. |
| Fields inherited from class java.lang.Thread |
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals |
| Constructor Summary | |
CacheUpdateThread(ICache cache,
long updateInterval)
Constructs a new update thread for the given cachen using the update interval passed. |
|
| Method Summary | |
long |
getUpdateIntervall()
Returns the update interval in ms |
void |
run()
Overwritten thread method who does actually the work. |
void |
setUpdateIntervall(long millis)
Sets the update interval |
void |
stopRunning()
Stop this thread. |
| Methods inherited from class java.lang.Thread |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
boolean running
| Constructor Detail |
public CacheUpdateThread(ICache cache,
long updateInterval)
cache - The cache to be updated.updateInterval - The update interval in ms| Method Detail |
public long getUpdateIntervall()
public void setUpdateIntervall(long millis)
millis - The update interval in mspublic void run()
run in class java.lang.Threadpublic void stopRunning()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||