megamek.client
Class TimerSingleton

java.lang.Object
  extended by 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.


Field Summary
protected static TimerSingleton inst
           
protected  java.util.Timer t
           
 
Constructor Summary
TimerSingleton()
           
 
Method Summary
static TimerSingleton getInstance()
           
 void schedule(java.util.TimerTask tt, long delay, long interval)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inst

protected static TimerSingleton inst

t

protected java.util.Timer t
Constructor Detail

TimerSingleton

public TimerSingleton()
Method Detail

getInstance

public static TimerSingleton getInstance()

schedule

public void schedule(java.util.TimerTask tt,
                     long delay,
                     long interval)