public class ManagedThreadFactoryImpl.ManagedThread extends AbstractManagedThread
ManagedThreadFactory.newThread()
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
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, shutdown
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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public ManagedThread(Runnable target, ContextHandle contextHandleForSetup)
public String getTaskIdentityName()
AbstractManagedThread
getTaskIdentityName
in class AbstractManagedThread
public long getTaskRunTime(long now)
AbstractManagedThread
getTaskRunTime
in class AbstractManagedThread
now
- The current time in milliseconds, which is typically obtained
by calling System.currentTimeMillis()
public long getThreadStartTime()
AbstractManagedThread
getThreadStartTime
in class AbstractManagedThread
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.