org.jboss.threads
Class JBossThreadFactory
java.lang.Object
org.jboss.threads.JBossThreadFactory
- All Implemented Interfaces:
- ThreadFactory
public final class JBossThreadFactory
- extends Object
- implements ThreadFactory
A factory for JBossThread
instances.
Constructor Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JBossThreadFactory
public JBossThreadFactory(ThreadGroup threadGroup,
Boolean daemon,
Integer initialPriority,
String namePattern,
Thread.UncaughtExceptionHandler uncaughtExceptionHandler,
Long stackSize)
- Construct a new instance. The access control context of the calling thread will be the one used to create
new threads if a security manager is installed.
- Parameters:
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
JBossThreadFactory
public JBossThreadFactory(ThreadGroup threadGroup,
Boolean daemon,
Integer initialPriority,
String namePattern,
Thread.UncaughtExceptionHandler uncaughtExceptionHandler,
Long stackSize,
AccessControlContext creatingContext)
- Construct a new instance. The access control context of the calling thread will be the one used to create
new threads if a security manager is installed.
- Parameters:
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 threads
newThread
public Thread newThread(Runnable target)
- Specified by:
newThread
in interface ThreadFactory
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.