|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread org.apache.ws.util.thread.NamedThread
Subclass of Thread
that provides commonly named threads for
use inside a particular software application.
NamedThread
, if a name is provided, that name will be used as the
base name for the thread. The base name will be decorated with additional information
to make the thread name unique.
Nested Class Summary | |
static class |
NamedThread.ConcurrentThreadFactory
A thread factory for use with the Concurrent API. |
Field Summary | |
static java.lang.String |
THREAD_NAME_PREFIX
all thread names will have this string as a prefix |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
NamedThread()
Creates the thread with an empty base name. |
|
NamedThread(java.lang.Runnable target)
Creates the thread with an empty base name. |
|
NamedThread(java.lang.Runnable target,
java.lang.String name)
Creates the thread with the given name to be used as the base name. |
|
NamedThread(java.lang.String name)
Creates the thread with the given name to be used as the base name. |
|
NamedThread(java.lang.ThreadGroup group,
java.lang.Runnable target)
Creates the thread with an empty base name. |
|
NamedThread(java.lang.ThreadGroup group,
java.lang.Runnable target,
java.lang.String name)
Creates the thread with the given name to be used as the base name. |
|
NamedThread(java.lang.ThreadGroup group,
java.lang.String name)
Creates the thread with the given name to be used as the base name. |
Method Summary | |
protected static java.lang.String |
createThreadName(java.lang.String baseName)
Builds a thread name that is unique to the JVM. |
java.lang.String |
getBaseName()
Returns the base name used to create the thread. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String THREAD_NAME_PREFIX
Constructor Detail |
public NamedThread()
Thread.Thread(java.lang.String)
public NamedThread(java.lang.Runnable target)
Thread.Thread(java.lang.Runnable)
public NamedThread(java.lang.ThreadGroup group, java.lang.Runnable target)
Thread.Thread(java.lang.ThreadGroup, java.lang.Runnable)
public NamedThread(java.lang.String name)
Thread.Thread(java.lang.String)
public NamedThread(java.lang.ThreadGroup group, java.lang.String name)
Thread.Thread(java.lang.ThreadGroup, java.lang.String)
public NamedThread(java.lang.Runnable target, java.lang.String name)
Thread.Thread(java.lang.Runnable, java.lang.String)
public NamedThread(java.lang.ThreadGroup group, java.lang.Runnable target, java.lang.String name)
Thread.Thread(java.lang.ThreadGroup, java.lang.Runnable, java.lang.String)
Method Detail |
public java.lang.String getBaseName()
Thread.getName()
. If no name was
passed into a constructor, or if null was passed, then null is returned.
protected static java.lang.String createThreadName(java.lang.String baseName)
baseName
- thread's base name
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |