JBoss Threads 2.0.0.GA

org.jboss.threads
Class JBossThreadFactory

java.lang.Object
  extended by 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.
 
Method Summary
 Thread newThread(Runnable target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 be null)
daemon - whether the created threads should be daemon threads, or null to use the thread group's setting
initialPriority - the initial thread priority, or null to use the thread group's setting
namePattern - the name pattern string
uncaughtExceptionHandler - the uncaught exception handler, if any
stackSize - 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 setting
initialPriority - the initial thread priority, or null to use the thread group's setting
namePattern - the name pattern string
uncaughtExceptionHandler - the uncaught exception handler, if any
stackSize - the JVM-specific stack size, or null to leave it unspecified
creatingContext - the access control context to use to create the threads
Method Detail

newThread

public Thread newThread(Runnable target)
Specified by:
newThread in interface ThreadFactory

JBoss Threads 2.0.0.GA

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.