public class ManagedThreadFactoryImpl.ManagedThread extends AbstractManagedThread
ManagedThreadFactory.newThread()Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
ManagedThreadFactoryImpl.ManagedThread(Runnable target,
ContextHandle contextHandleForSetup) |
| Modifier and Type | Method and Description |
|---|---|
String |
getTaskIdentityName()
Return the identity name of the task that is being run on this thread.
|
long |
getTaskRunTime(long now)
Return the time in millisecond since the task has started.
|
long |
getThreadStartTime()
Return the time that the thread was started, measured in milliseconds,
between the current time and midnight, January 1, 1970 UTC.
|
void |
run() |
isShutdown, shutdownactiveCount, 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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic ManagedThreadFactoryImpl.ManagedThread(Runnable target, ContextHandle contextHandleForSetup)
public String getTaskIdentityName()
AbstractManagedThreadgetTaskIdentityName in class AbstractManagedThreadpublic long getTaskRunTime(long now)
AbstractManagedThreadgetTaskRunTime in class AbstractManagedThreadnow - The current time in milliseconds, which is typically obtained
by calling System.currentTimeMillis()public long getThreadStartTime()
AbstractManagedThreadgetThreadStartTime in class AbstractManagedThreadCopyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.