Package org.jboss.threads
Class JBossThreadFactory
java.lang.Object
org.jboss.threads.JBossThreadFactory
- All Implemented Interfaces:
ThreadFactory
A factory for
JBossThread instances.-
Constructor Summary
ConstructorsConstructorDescriptionJBossThreadFactory(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. -
Method Summary
-
Constructor Details
-
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 Details
-
newThread
- Specified by:
newThreadin interfaceThreadFactory
-
JBossThreadFactory(ThreadGroup, Boolean, Integer, String, Thread.UncaughtExceptionHandler, Long)instead.