org.ceryle.wiki.plugin.query
Class QueryItemReaper
java.lang.Object
java.lang.Thread
org.ceryle.wiki.plugin.query.QueryItemReaper
- All Implemented Interfaces:
- Runnable
public class QueryItemReaper
- extends Thread
Tells the QueryItemManager to remove Queries that haven't been accessed
in some time.
(Is this really needed? What if we just let them lay around, they consume
memory, but surely not that much? ...better safe than sorry)
- Author:
- John Volkar (john.volkar at gmail.com)
|
Method Summary |
static void |
register(QueryItemManager manager)
|
void |
run()
|
static void |
startOnce()
Utility to allow QueryItemManager to assure that one and only one reaper gets started. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
startOnce
public static void startOnce()
- Utility to allow QueryItemManager to assure that one and only one reaper gets started.
register
public static void register(QueryItemManager manager)
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.