public static class ThreadMonitor.ThreadExecutionState extends Object
Modifier and Type | Method and Description |
---|---|
javax.measure.Measurable<javax.measure.quantity.Duration> |
getDuration()
Gets the execution duration: time the thread spent in execution.
|
Date |
getEndTime()
Gets the execution end time,
null if the thread has not
finished execution. |
Date |
getStartTime()
Gets the execution start time,
null if the thread has not
started execution (If it is queued in the thread pool). |
Object |
getThread()
|
long |
getThreadId()
Gets the thread's id.
|
String |
toString() |
public long getThreadId()
public Object getThread()
public Date getStartTime()
null
if the thread has not
started execution (If it is queued in the thread pool).public Date getEndTime()
null
if the thread has not
finished execution.public javax.measure.Measurable<javax.measure.quantity.Duration> getDuration()
null
if the threads has not
finished executionCopyright © 2015. All Rights Reserved.