public final class ReschedulableTimer
extends java.lang.Thread
| Constructor and Description |
|---|
ReschedulableTimer(java.lang.String name)
Create a ReschedulableTimer queue.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
int |
getTimerSize()
Get the number of queued tasks on this timer.
|
void |
run()
Execute the timer tasks queued to this timer.
|
void |
shutdown()
Stop this timer queue and release all of its resources.
|
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, yieldpublic ReschedulableTimer(java.lang.String name)
name - thread name String to assign to this timer (must not be null or empty)public final void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic int getTimerSize()
public void shutdown()
protected void finalize()
throws java.lang.Throwable
finalize method to dispose of
system resources or to perform other cleanup.finalize in class java.lang.Objectjava.lang.Throwable - the Exception raised by this method