public class Waitress
extends java.lang.Thread
| Constructor and Description |
|---|
Waitress()
Creates a new Waitress.
|
| Modifier and Type | Method and Description |
|---|---|
void |
registerWorker(java.lang.Runnable runner,
DefaultTransportPluginWorker worker)
Adds a worker to the map of workers to be handled in the waiting line.
|
void |
run() |
void |
sendWorkerStarted(java.lang.Runnable runnable)
Takes the given Runnable and looks up the worker associated with it.
|
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, yieldpublic Waitress()
public void registerWorker(java.lang.Runnable runner,
DefaultTransportPluginWorker worker)
runner - the key to look up the worker, must not be nullworker - the worker to add, must not be nullpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void sendWorkerStarted(java.lang.Runnable runnable)
throws java.io.IOException
runnable - the key for finding the workerjava.io.IOException - thrown if a communication error occurs