com.google.common.util.concurrent
Class DaemonThreadFactory
java.lang.Object
com.google.common.util.concurrent.DaemonThreadFactory
- All Implemented Interfaces:
- ThreadFactory
Deprecated. Create a ThreadFactoryBuilder
and then use its
ThreadFactoryBuilder.setDaemon(boolean)
and
ThreadFactoryBuilder.setThreadFactory(java.util.concurrent.ThreadFactory)
methods.
@Beta
@Deprecated
public final class DaemonThreadFactory
- extends Object
- implements ThreadFactory
Wraps another ThreadFactory
, making all new threads daemon threads.
- Since:
- 1
- Author:
- Charles Fry, Harendra Verma
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DaemonThreadFactory
public DaemonThreadFactory(ThreadFactory factory)
- Deprecated.
newThread
public Thread newThread(Runnable r)
- Deprecated.
- Specified by:
newThread
in interface ThreadFactory