org.apache.geronimo.gshell.common
Class NamedThreadFactory
java.lang.Object
org.apache.geronimo.gshell.common.NamedThreadFactory
- All Implemented Interfaces:
- ThreadFactory
public class NamedThreadFactory
- extends Object
- implements ThreadFactory
A ThreadFactory which automatically generates thread names based off of a
pre-configured basename passed in during construction and a unique index.
- Version:
- $Rev: 578527 $ $Date: 2007-09-22 16:35:08 -0700 (Sat, 22 Sep 2007) $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamedThreadFactory
public NamedThreadFactory(String baseName,
ThreadGroup group)
NamedThreadFactory
public NamedThreadFactory(String baseName)
NamedThreadFactory
public NamedThreadFactory(Class type)
NamedThreadFactory
public NamedThreadFactory(Class type,
String suffix)
getBaseName
public String getBaseName()
getGroup
public ThreadGroup getGroup()
current
public long current()
newThread
public Thread newThread(Runnable task)
- Specified by:
newThread in interface ThreadFactory
createName
protected String createName()
configure
protected void configure(Thread t)
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.