Class SimpleTimer

  • All Implemented Interfaces:
    java.lang.Runnable

    public final class SimpleTimer
    extends java.lang.Object
    implements java.lang.Runnable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean stopped  
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleTimer​(java.lang.Runnable runnable, long interval)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • stopped

        public volatile boolean stopped
    • Constructor Detail

      • SimpleTimer

        public SimpleTimer​(java.lang.Runnable runnable,
                           long interval)
    • Method Detail

      • stop

        public void stop()
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable