public class BasicThreadFactory extends Object implements ThreadFactory
| Constructor and Description |
|---|
BasicThreadFactory(String name)
Creates factory that makes non-daemon threads in the current thread group with default exception handling.
|
BasicThreadFactory(String name,
boolean daemon)
Creates factory that makes threads in the current thread group with default exception handling.
|
BasicThreadFactory(String name,
ThreadGroup group,
boolean daemon)
Creates thread factory with default exception handling.
|
BasicThreadFactory(String name,
ThreadGroup group,
boolean daemon,
Thread.UncaughtExceptionHandler еxceptionHandler)
Creates thread factory.
|
public BasicThreadFactory(String name)
name - Thread name prefix: threads will be named "name-N".
If null, threads will be named BasicThreadFactory-K-N".public BasicThreadFactory(String name, boolean daemon)
name - Thread name prefix: threads will be named "name-N".
If null, threads will be named BasicThreadFactory-K-N".daemon - Whether or not threads made by this factory are daemons.public BasicThreadFactory(String name, ThreadGroup group, boolean daemon)
name - Thread name prefix: threads will be named "name-N".
If null, threads will be named BasicThreadFactory-K-N".group - Thread group. If null, the group of the thread that creates
this factory will be used, unless SecurityManager exists.daemon - Whether or not threads made by this factory are daemons.public BasicThreadFactory(String name, ThreadGroup group, boolean daemon, Thread.UncaughtExceptionHandler еxceptionHandler)
name - Thread name prefix: threads will be named "name-N".
If null, threads will be named BasicThreadFactory-K-N".group - Thread group. If null, the group of the thread that creates
this factory will be used, unless SecurityManager exists.daemon - Whether or not threads made by this factory are daemons.еxceptionHandler - Uncaught exception handler, or null if default handling should be used.public Thread newThread(Runnable r)
newThread in interface ThreadFactoryCopyright © 2024 LSST. All rights reserved.