public final class JBossThreadFactory
extends java.lang.Object
implements java.util.concurrent.ThreadFactory
JBossThread instances.| Modifier and Type | Class and Description |
|---|---|
private class |
JBossThreadFactory.ThreadCreateAction |
| Modifier and Type | Field and Description |
|---|---|
private java.security.AccessControlContext |
creatingContext |
private java.lang.Boolean |
daemon |
private long |
factoryIndex |
private static java.util.concurrent.atomic.AtomicLong |
factoryIndexSequence |
private java.util.concurrent.atomic.AtomicLong |
factoryThreadIndexSequence |
private static java.util.concurrent.atomic.AtomicLong |
globalThreadIndexSequence |
private java.lang.Integer |
initialPriority |
private java.lang.String |
namePattern |
private java.lang.Long |
stackSize |
private java.lang.ThreadGroup |
threadGroup |
private java.lang.Thread.UncaughtExceptionHandler |
uncaughtExceptionHandler |
| Constructor and Description |
|---|
JBossThreadFactory(java.lang.ThreadGroup threadGroup,
java.lang.Boolean daemon,
java.lang.Integer initialPriority,
java.lang.String namePattern,
java.lang.Thread.UncaughtExceptionHandler uncaughtExceptionHandler,
java.lang.Long stackSize)
Construct a new instance.
|
JBossThreadFactory(java.lang.ThreadGroup threadGroup,
java.lang.Boolean daemon,
java.lang.Integer initialPriority,
java.lang.String namePattern,
java.lang.Thread.UncaughtExceptionHandler uncaughtExceptionHandler,
java.lang.Long stackSize,
java.security.AccessControlContext ignored)
Deprecated.
This constructor is unsafe and now just delegates to
the other constructor without using the given access control context. It will be removed as of version 2.3.0.Final. |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.Thread |
createThread(java.lang.Runnable target) |
java.lang.Thread |
newThread(java.lang.Runnable target) |
private final java.lang.ThreadGroup threadGroup
private final java.lang.Boolean daemon
private final java.lang.Integer initialPriority
private final java.lang.Thread.UncaughtExceptionHandler uncaughtExceptionHandler
private final java.lang.Long stackSize
private final java.lang.String namePattern
private final java.util.concurrent.atomic.AtomicLong factoryThreadIndexSequence
private final long factoryIndex
private final java.security.AccessControlContext creatingContext
private static final java.util.concurrent.atomic.AtomicLong globalThreadIndexSequence
private static final java.util.concurrent.atomic.AtomicLong factoryIndexSequence
public JBossThreadFactory(java.lang.ThreadGroup threadGroup,
java.lang.Boolean daemon,
java.lang.Integer initialPriority,
java.lang.String namePattern,
java.lang.Thread.UncaughtExceptionHandler uncaughtExceptionHandler,
java.lang.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 unspecified@Deprecated
public JBossThreadFactory(java.lang.ThreadGroup threadGroup,
java.lang.Boolean daemon,
java.lang.Integer initialPriority,
java.lang.String namePattern,
java.lang.Thread.UncaughtExceptionHandler uncaughtExceptionHandler,
java.lang.Long stackSize,
java.security.AccessControlContext ignored)
the other constructor without using the given access control context. It will be removed as of version 2.3.0.Final.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 unspecifiedignored - ignored