org.melati.util
Class Flusher

Package class diagram package Flusher
java.lang.Object
  extended by java.lang.Thread
      extended by org.melati.util.Flusher
All Implemented Interfaces:
Runnable

public final class Flusher
extends Thread

Flusher replaces need for Thread.stop.


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
 
Constructor Summary
Flusher(MelatiWriter aOut)
          Constructor.
 
Method Summary
 boolean getStopTask()
           
 void run()
          
 void setStopTask(boolean aStopTask)
           
 
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
 

Constructor Detail

Flusher

public Flusher(MelatiWriter aOut)
Constructor.

Parameters:
aOut - MelatiWriter to flush
Method Detail

getStopTask

public boolean getStopTask()
Returns:
whether to stop the task

setStopTask

public void setStopTask(boolean aStopTask)
Parameters:
aStopTask - set whether to stop the task

run

public void run()

Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Thread.run()


Copyright © 2000-2010 PanEris. All Rights Reserved.