megamek.client
Class TimerSingleton
java.lang.Object
megamek.client.TimerSingleton
public class TimerSingleton
- extends java.lang.Object
a singleton class (I hate singletons) to act as a central point for things
requiring timer services in clients.
note: acts as a daemon thread so will
exit when other threads have exited.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inst
protected static TimerSingleton inst
t
protected java.util.Timer t
TimerSingleton
public TimerSingleton()
getInstance
public static TimerSingleton getInstance()
schedule
public void schedule(java.util.TimerTask tt,
long delay,
long interval)