
public final class JBossThreadFactory extends Object implements ThreadFactory
JBossThread instances.| Constructor and Description |
|---|
JBossThreadFactory(ThreadGroup threadGroup,
Boolean daemon,
Integer initialPriority,
String namePattern,
Thread.UncaughtExceptionHandler uncaughtExceptionHandler,
Long stackSize)
Construct a new instance.
|
JBossThreadFactory(ThreadGroup threadGroup,
Boolean daemon,
Integer initialPriority,
String namePattern,
Thread.UncaughtExceptionHandler uncaughtExceptionHandler,
Long stackSize,
AccessControlContext ignored)
Deprecated.
This constructor is unsafe and now just delegates to
the other constructor without using the given access control context. It will be removed as of version 2.3.0.Final. |
public JBossThreadFactory(ThreadGroup threadGroup, Boolean daemon, Integer initialPriority, String namePattern, Thread.UncaughtExceptionHandler uncaughtExceptionHandler, Long stackSize)
threadGroup - the thread group to assign threads to by default (may be null)daemon - whether the created threads should be daemon threads, or null to use the thread group's settinginitialPriority - the initial thread priority, or null to use the thread group's settingnamePattern - the name pattern stringuncaughtExceptionHandler - the uncaught exception handler, if anystackSize - the JVM-specific stack size, or null to leave it unspecified@Deprecated public JBossThreadFactory(ThreadGroup threadGroup, Boolean daemon, Integer initialPriority, String namePattern, Thread.UncaughtExceptionHandler uncaughtExceptionHandler, Long stackSize, AccessControlContext ignored)
the other constructor without using the given access control context. It will be removed as of version 2.3.0.Final.threadGroup - the thread group to assign threads to by default (may be null)daemon - whether the created threads should be daemon threads, or null to use the thread group's settinginitialPriority - the initial thread priority, or null to use the thread group's settingnamePattern - the name pattern stringuncaughtExceptionHandler - the uncaught exception handler, if anystackSize - the JVM-specific stack size, or null to leave it unspecifiedignored - ignoredpublic Thread newThread(Runnable target)
newThread in interface ThreadFactoryCopyright © 2015 JBoss by Red Hat. All rights reserved.