Package 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 forJBossThreadinstances.
-
-
Constructor Summary
Constructors Constructor 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.
-
-
-
Constructor Detail
-
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 benull)daemon- whether the created threads should be daemon threads, ornullto use the thread group's settinginitialPriority- the initial thread priority, ornullto use the thread group's settingnamePattern- the name pattern stringuncaughtExceptionHandler- the uncaught exception handler, if anystackSize- the JVM-specific stack size, ornullto leave it unspecified
-
JBossThreadFactory
public JBossThreadFactory(ThreadGroup threadGroup, Boolean daemon, Integer initialPriority, String namePattern, Thread.UncaughtExceptionHandler uncaughtExceptionHandler, Long stackSize, AccessControlContext ignored)
Deprecated.
-
-
Method Detail
-
newThread
public Thread newThread(Runnable target)
- Specified by:
newThreadin interfaceThreadFactory
-
-