Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.altara.util
Class Worker  view Worker download Worker.java

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.altara.util.Worker
All Implemented Interfaces:
java.lang.Runnable

public abstract class Worker
extends java.lang.Thread


Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  boolean awake
           
private  boolean running
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected Worker()
           
protected Worker(java.lang.String name)
           
 
Method Summary
 void kill()
           
 void lull()
           
 void run()
          The method of Thread that will be run if there is no Runnable object associated with the Thread.
 void start()
          Start this Thread, calling the run() method of the Runnable this Thread was created with, or else the run() method of the Thread itself.
 void startAsleep()
           
 void wake()
           
protected abstract  void work()
           
protected  void workException(java.lang.Exception ex)
           
protected  void workExit()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

running

private boolean running

awake

private boolean awake
Constructor Detail

Worker

protected Worker()

Worker

protected Worker(java.lang.String name)
Method Detail

start

public void start()
Description copied from class: java.lang.Thread
Start this Thread, calling the run() method of the Runnable this Thread was created with, or else the run() method of the Thread itself. This is the only way to start a new thread; calling run by yourself will just stay in the same thread. The virtual machine will remove the thread from its thread group when the run() method completes.


startAsleep

public void startAsleep()

lull

public void lull()

wake

public void wake()

kill

public void kill()

run

public final void run()
Description copied from class: java.lang.Thread
The method of Thread that will be run if there is no Runnable object associated with the Thread. Thread's implementation does nothing at all.


work

protected abstract void work()
                      throws java.lang.Exception

workException

protected void workException(java.lang.Exception ex)

workExit

protected void workExit()