com.valescom.support.timer.java
Class OneShotTimer
java.lang.Object
|
+--com.valescom.support.event.java.EventHandler
|
+--com.valescom.support.timer.java.Timer
|
+--com.valescom.support.timer.java.OneShotTimer
- public abstract class OneShotTimer
- extends Timer
- Responsibility:
- Performing a task once, at a certain time in the future.
- Usage:
new OneShotTimer(10)
{
public final void
handle(Event anEvent)
{
System.out.println("Timer goes off");
}
}.start();
-

|
Method Summary |
protected void |
timeout()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OneShotTimer
protected OneShotTimer(int anInterval)
timeout
protected final void timeout()
- Overrides:
timeout in class Timer
Copyright 1998, 2003 - Valescom