java.lang.Object
java.lang.Thread
ro.nolimits.rue.util.Timer
ro.nolimits.rue.util.OffsetTimer
- All Implemented Interfaces:
- java.lang.Runnable
- public class OffsetTimer
- extends Timer
Extends the Timer class implementing TimeoutException and Listener
- Version:
- $Revision: 0.5.1.1 $ $Date: 2000/08/01 10:52:46 $
| Nested classes inherited from class java.lang.Thread |
java.lang.Thread.UncaughtExceptionHandler |
| Fields inherited from class ro.nolimits.rue.util.Timer |
|
|
Constructor Summary |
OffsetTimer(long time)
Creates a timer of a specified lenght |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, 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 |
_listenerItems
private java.util.Vector _listenerItems
OffsetTimer
public OffsetTimer(long time)
- Creates a timer of a specified lenght
addTimeoutListener
public void addTimeoutListener(TimeoutListener timeList)
- Adds the specified TimeoutListener to receive TimeoutEvents
from this timer. If it's null IllegalArgumentException is thrown.
removeTimeoutListener
public void removeTimeoutListener(TimeoutListener timeList)
- Removes the specified TimeoutListener from receiveing TimeoutEvents
from this timer. If it's null IllegalArgumentException is thrown.
dispatchTimeoutEvent
private void dispatchTimeoutEvent()
timeout
public void timeout()
- This method is called when the timeout occurs. You can overrid it
but don't forget to call
super.timeout() in order to
generate the timeout events.
- Overrides:
timeout in class Timer