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.
|
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 unspecifiedpublic JBossThreadFactory(ThreadGroup threadGroup, Boolean daemon, Integer initialPriority, String namePattern, Thread.UncaughtExceptionHandler uncaughtExceptionHandler, Long stackSize, AccessControlContext ignored)
JBossThreadFactory(ThreadGroup, Boolean, Integer, String, Thread.UncaughtExceptionHandler, Long)
instead.public Thread newThread(Runnable target)
newThread
in interface ThreadFactory
Copyright © 2023 JBoss by Red Hat. All rights reserved.