org.ceryle.wiki.plugin.query
Class QueryItemReaper

java.lang.Object
  extended by java.lang.Thread
      extended by 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)

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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.