Class Daemon
java.lang.Object
java.lang.Thread
uk.ac.manchester.spinnaker.utils.Daemon
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new daemon thread.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 Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Constructor Details
-
Daemon
-
Daemon
-
Daemon
Allocate a new daemon thread. This thread is not running.- Parameters:
group- the object whoserunmethod is invoked when this thread is started.target- the object whoserunmethod 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 whoserunmethod is invoked when this thread is started. Nevernull.name- the name of the new thread
-