T - public class ConcurrentComponentAccessUtil.InstrumentedFutureTask<T>
extends java.util.concurrent.FutureTask<T>
| Constructor and Description |
|---|
InstrumentedFutureTask(java.util.concurrent.Callable<T> callable) |
InstrumentedFutureTask(java.lang.Runnable runnable,
T result) |
| Modifier and Type | Method and Description |
|---|---|
long |
getEndTime() |
long |
getExecutionTime()
Return the execution time calculated from the start and the end time.
|
long |
getStartTime() |
public InstrumentedFutureTask(java.util.concurrent.Callable<T> callable)
public InstrumentedFutureTask(java.lang.Runnable runnable,
T result)
public long getStartTime()
public long getEndTime()
public long getExecutionTime()
throws java.lang.Exception
The execution time is available only when the task has been executed.
java.lang.Exception - If the execution time is read before the task terminates