public class PoolNameThread
extends java.lang.Thread
Thread
that knows its pool name.Constructor and Description |
---|
PoolNameThread(java.lang.Runnable target,
java.lang.String poolName,
boolean addPoolName) |
Modifier and Type | Method and Description |
---|---|
void |
clearRunnableName()
Clears the name of the runnable, setting the name of the thread to the pool name.
|
void |
setRunnableName(java.lang.String runnableName)
Sets the thread's name to the runnableName, possibly adding the pool name if
addPoolName has been set to
true in the constructor. |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public PoolNameThread(java.lang.Runnable target, java.lang.String poolName, boolean addPoolName)
public void setRunnableName(java.lang.String runnableName)
true
in the constructor.public void clearRunnableName()