Runnable
public static final class TimeLimitingCollector.TimerThread extends Thread
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field | Description |
---|---|---|
static int |
DEFAULT_RESOLUTION |
|
static String |
THREAD_NAME |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor | Description |
---|---|
TimerThread(long resolution,
Counter counter) |
|
TimerThread(Counter counter) |
Modifier and Type | Method | Description |
---|---|---|
long |
getMilliseconds() |
Get the timer value in milliseconds.
|
long |
getResolution() |
Return the timer resolution.
|
void |
run() |
|
void |
setResolution(long resolution) |
Set the timer resolution.
|
void |
stopTimer() |
Stops the timer thread
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public static final String THREAD_NAME
public static final int DEFAULT_RESOLUTION
public TimerThread(long resolution, Counter counter)
public TimerThread(Counter counter)
public long getMilliseconds()
public void stopTimer()
public long getResolution()
setResolution(long)
public void setResolution(long resolution)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.