java.lang.Object
java.lang.Thread
org.altara.util.Worker
- All Implemented Interfaces:
- java.lang.Runnable
- public abstract class Worker
- extends java.lang.Thread
| Nested classes inherited from class java.lang.Thread |
java.lang.Thread.UncaughtExceptionHandler |
|
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 |
running
private boolean running
awake
private boolean awake
Worker
protected Worker()
Worker
protected Worker(java.lang.String name)
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()