private class CommunicationHandler.SenderThread extends Thread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
private boolean |
cancel
If true, we cancel on next invocation.
|
private PacketOutputStream |
out
This is the output stream to serialize the messages to.
|
private long |
wakeup
This is the regular time interval we wake up checking for cancel.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier | Constructor and Description |
|---|---|
private |
SenderThread(PacketOutputStream socket,
long vulture) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
We set the cancel flag to true, this will terminate the sender
thread on next wakeup.
|
void |
run()
While alive, the sender permanently watches the parental queue for
element insertion.
|
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, yieldprivate boolean cancel
private final PacketOutputStream out
private final long wakeup
private SenderThread(PacketOutputStream socket, long vulture)