public final class TimerThread
extends java.lang.Thread
| Modifier and Type | Class and Description |
|---|---|
private static class |
TimerThread.TimerRequest |
(package private) static class |
TimerThread.Type |
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
mutex |
private java.util.ArrayList<TimerThread.TimerRequest> |
requests |
| Constructor and Description |
|---|
TimerThread(HawtDispatcher dispatcher) |
| Modifier and Type | Method and Description |
|---|---|
private void |
add(TimerThread.TimerRequest request) |
void |
addAbsolute(Task task,
DispatchQueue target,
long time,
java.util.concurrent.TimeUnit unit) |
void |
addRelative(Task task,
DispatchQueue target,
long delay,
java.util.concurrent.TimeUnit unit) |
void |
run() |
void |
shutdown(Task onShutdown,
DispatchQueue target) |
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, yieldprivate final java.lang.Object mutex
private java.util.ArrayList<TimerThread.TimerRequest> requests
public TimerThread(HawtDispatcher dispatcher)
public final void addAbsolute(Task task, DispatchQueue target, long time, java.util.concurrent.TimeUnit unit)
public final void addRelative(Task task, DispatchQueue target, long delay, java.util.concurrent.TimeUnit unit)
public final void shutdown(Task onShutdown, DispatchQueue target)
private void add(TimerThread.TimerRequest request)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread