java.lang.Object | +--java.lang.Thread | +--java.util.TimerThread
This "helper class" implements the timer's task execution thread, which waits for tasks on the timer queue, executions them when they fire, reschedules repeating tasks, and removes cancelled tasks and spent non-repeating tasks from the queue.
(package private) boolean
newTasksMayBeScheduled
void
run()
Runnable run object, then that
Runnable object's run method is called;
otherwise, this method does nothing and returns.
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
boolean newTasksMayBeScheduled
private TaskQueue queue
TimerThread(TaskQueue queue)
public void run()
ThreadRunnable run object, then that
Runnable object's run method is called;
otherwise, this method does nothing and returns.
Subclasses of Thread should override this method.
java.lang.Thread#start(),
java.lang.Thread#stop(),
java.lang.Thread#Thread(java.lang.ThreadGroup,
java.lang.Runnable, java.lang.String),
java.lang.Runnable#run()private void mainLoop()