Regain 2.1.0-STABLE API

net.sf.regain.search
Class IndexSearcherManager.IndexUpdateThread

java.lang.Object
  extended by java.lang.Thread
      extended by net.sf.regain.search.IndexSearcherManager.IndexUpdateThread
All Implemented Interfaces:
Closeable, Runnable
Enclosing class:
IndexSearcherManager

private class IndexSearcherManager.IndexUpdateThread
extends Thread
implements Closeable

WARNING: Thread Programming ahead. Every single line may have its importance.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private static int INDEX_UPDATE_THREAD_SLEEPTIME
          Nb of milliseconds between a check if a new index is available.
private  boolean quit
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
private IndexSearcherManager.IndexUpdateThread()
           
 
Method Summary
 void close()
          Request termination of thread.
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INDEX_UPDATE_THREAD_SLEEPTIME

private static final int INDEX_UPDATE_THREAD_SLEEPTIME
Nb of milliseconds between a check if a new index is available.

See Also:
Constant Field Values

quit

private volatile boolean quit
Constructor Detail

IndexSearcherManager.IndexUpdateThread

private IndexSearcherManager.IndexUpdateThread()
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

close

public void close()
Request termination of thread. Will terminate as soon as possible.

Specified by:
close in interface Closeable

Regain 2.1.0-STABLE API

Regain 2.1.0-STABLE, Copyright (C) 2004-2010 Til Schneider, www.murfman.de, Thomas Tesche, www.clustersystems.info