public class NamedThreadFactory extends Object implements ThreadFactory
Constructor and Description |
---|
NamedThreadFactory(String threadNamePrefix,
Boolean daemon,
Integer priority,
ThreadGroup threadGroup,
Long stackSize)
Constructs a thread factory that will create new Thread instances (as opposed to using a delegate thread
factory).
|
NamedThreadFactory(String threadNamePrefix,
ThreadFactory delegate,
Boolean daemon,
Integer priority)
Constructs an instance that delegates thread creation to the thread factory passed as an argument.
|
public NamedThreadFactory(String threadNamePrefix, ThreadFactory delegate, Boolean daemon, Integer priority)
threadNamePrefix
- The prefix of the name for new threads (cannot be null or an empty string).delegate
- The factory to which this implementation delegates to (null when no override is desired).daemon
- override for the isDaemon value for new threads (null when no override is desired).priority
- override for the priority value for new threads (null when no override is desired).public NamedThreadFactory(String threadNamePrefix, Boolean daemon, Integer priority, ThreadGroup threadGroup, Long stackSize)
threadNamePrefix
- The prefix of the name for new threads (cannot be null or an empty string).daemon
- the isDaemon value for new threads (null to use default value).priority
- override for the priority value for new threads (null to use default value).threadGroup
- override for the thread group (null to use default value).stackSize
- override for the stackSize value for new threads (null to use default value).public Thread newThread(Runnable runnable)
newThread
in interface ThreadFactory
Copyright © 2003-2008 Jive Software.