public class RunQueue
extends java.lang.Thread
Runnable.run()
Constructor and Description |
---|
RunQueue()
default constructor.
|
RunQueue(boolean isDaemon,
int priority,
boolean autoStart)
construct a thread in the default ThreadGroup with a few
options set
|
RunQueue(java.lang.ThreadGroup tg)
construct this thread in a particular ThreadGroup
|
RunQueue(java.lang.ThreadGroup tg,
boolean isDaemon,
int priority,
boolean autoStart)
construct a thread in the default ThreadGroup with a few
options set
|
Modifier and Type | Method and Description |
---|---|
void |
enqueue(TerminatingRunnable r)
Add an object to the queue of threads to run
|
void |
run()
start going.
|
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, yield
public RunQueue()
public RunQueue(java.lang.ThreadGroup tg)
tg
- the ThreadGroup to be in. null
means
the current ThreadGrouppublic RunQueue(boolean isDaemon, int priority, boolean autoStart)
isDaemon
- true
means be a daemon thread,
false
means don't.priority
- the value to use when calling setPriorityautoStart
- true
means call this.start()Thread.start()
public RunQueue(java.lang.ThreadGroup tg, boolean isDaemon, int priority, boolean autoStart)
tg
- the ThreadGroup to be inisDaemon
- true
means be a daemon thread,
false
means don't.priority
- the value to use when calling setPriorityautoStart
- true
means call this.start()Thread.start()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void enqueue(TerminatingRunnable r)
r
- the object to addCopyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details