Package uk.ac.manchester.spinnaker.utils
Class Daemon
java.lang.Object
java.lang.Thread
uk.ac.manchester.spinnaker.utils.Daemon
- All Implemented Interfaces:
Runnable
public class Daemon extends Thread
A thread that is a daemon by default.
- Author:
- Donal Fellows
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Daemon(Runnable target)
Allocate a new daemon thread.Daemon(Runnable target, String name)
Allocate a new daemon thread.Daemon(ThreadGroup group, Runnable target)
Allocate a new daemon thread.Daemon(ThreadGroup group, Runnable target, String name)
Allocate a new daemon thread. -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
Daemon
Allocate a new daemon thread. This thread is not running.- Parameters:
target
- the object whoserun
method is invoked when this thread is started. Nevernull
.
-
Daemon
Allocate a new daemon thread. This thread is not running.- Parameters:
target
- the object whoserun
method is invoked when this thread is started. Nevernull
.name
- the name of the new thread
-
Daemon
Allocate a new daemon thread. This thread is not running.- Parameters:
group
- the object whoserun
method is invoked when this thread is started.target
- the object whoserun
method is invoked when this thread is started. Nevernull
.
-
Daemon
Allocate a new daemon thread. This thread is not running.- Parameters:
group
- the thread group. Ifnull
, the group is set to the current thread's thread group.target
- the object whoserun
method is invoked when this thread is started. Nevernull
.name
- the name of the new thread
-