DaemonThreadFactory

Undocumented in source.
final
class DaemonThreadFactory : ThreadFactory {}

Members

Functions

newThread
ThreadEx newThread(Runnable runnable)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From ThreadFactory

defaultThreadFactory
ThreadFactory defaultThreadFactory()

Returns a default thread factory used to create new threads. This factory creates all new threads used by an Executor in the same {@link ThreadGroupEx}. If there is a {@link java.lang.SecurityManager}, it uses the group of {@link System#getSecurityManager}, else the group of the thread invoking this {@code defaultThreadFactory} method. Each new thread is created as a non-daemon thread with priority set to the smaller of {@code Thread.PRIORITY_DEFAULT} and the maximum priority permitted in the thread group. New threads have names accessible via {@link Thread#getName} of <em>pool-N-thread-M</em>, where <em>N</em> is the sequence number of this factory, and <em>M</em> is the sequence number of the thread created by this factory. @return a thread factory

newThread
Thread newThread(Runnable r)

Constructs a new {@code Thread}. Implementations may also initialize priority, name, daemon status, {@code ThreadGroupEx}, etc.

Meta