nan.tools
Class AbstractBackgroundTask

java.lang.Object
  extended byjava.lang.Thread
      extended bynan.tools.AbstractBackgroundTask
All Implemented Interfaces:
BackgroundTask, java.lang.Runnable
Direct Known Subclasses:
BackgroundAttachmentSaver, BackgroundCacheDownloader, BackgroundCacheReader, BackgroundCacheWriter, BackgroundConnectThread, BackgroundDirectoryDeleter, BackgroundNewsgroupDownloader, BackgroundNewsgroupListDownloader, BackgroundReader, BackgroundWriter

public abstract class AbstractBackgroundTask
extends java.lang.Thread
implements BackgroundTask

An abstract class implementing the BackgroundTask interface in a Thread.

Version:
1.1, 12/25/03
Author:
John David Ratliff

Field Summary
protected  boolean finished
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AbstractBackgroundTask()
           
 
Method Summary
 boolean isFinished()
          Asks if the task is finished.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, 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
 

Field Detail

finished

protected boolean finished
Constructor Detail

AbstractBackgroundTask

public AbstractBackgroundTask()
Method Detail

isFinished

public boolean isFinished()
Asks if the task is finished.

Specified by:
isFinished in interface BackgroundTask
Returns:
true if the task is finished; false otherwise.