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.
|
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, yield
public 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.Runnable
run
in class java.lang.Thread
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.Object
java.lang.Throwable
- the Exception
raised by this method