Class TimerSingleton

java.lang.Object
megamek.client.TimerSingleton

public class TimerSingleton extends 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 Details

  • Constructor Details

    • TimerSingleton

      public TimerSingleton()
  • Method Details

    • getInstance

      public static TimerSingleton getInstance()
    • schedule

      public void schedule(TimerTask tt, long delay, long interval)
    • killTimer

      public void killTimer()