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 creatingContext)
Construct a new instance.
|
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 creatingContext)
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 unspecifiedcreatingContext
- the access control context to use to create the threadspublic Thread newThread(Runnable target)
newThread
in interface ThreadFactory
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.