java.lang.RunnableDaemon.DaemonFactory@LimitedPrivate({"HDFS","MapReduce"})
@Unstable
public class Daemon
extends java.lang.Thread
Thread.setDaemon(boolean) with true.| Modifier and Type | Class | Description |
|---|---|---|
static class |
Daemon.DaemonFactory |
Provide a factory for named daemon threads,
for use in ExecutorServices constructors
|
| Constructor | Description |
|---|---|
Daemon() |
Construct a daemon thread.
|
Daemon(java.lang.Runnable runnable) |
Construct a daemon thread.
|
Daemon(java.lang.ThreadGroup group,
java.lang.Runnable runnable) |
Construct a daemon thread to be part of a specified thread group.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Runnable |
getRunnable() |
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, yieldpublic Daemon()
public Daemon(java.lang.Runnable runnable)
runnable - runnable.public Daemon(java.lang.ThreadGroup group,
java.lang.Runnable runnable)
group - thread group.runnable - runnable.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.