Class TimeOutEnding

    • Constructor Summary

      Constructors 
      Constructor Description
      TimeOutEnding​(long time, java.util.concurrent.TimeUnit unit)  
    • Method Summary

      Modifier and Type Method Description
      boolean ends()  
      void shutDown()  
      void startTimer​(java.lang.Runnable checkEndingCallback, UpdatableHandler updatableHandler)  
      void update​(long deltaMillis)
      Perform a periodic action
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface net.starype.quiz.api.game.event.Updatable

        pause
    • Constructor Detail

      • TimeOutEnding

        public TimeOutEnding​(long time,
                             java.util.concurrent.TimeUnit unit)
    • Method Detail

      • startTimer

        public void startTimer​(java.lang.Runnable checkEndingCallback,
                               UpdatableHandler updatableHandler)
      • update

        public void update​(long deltaMillis)
        Description copied from interface: Updatable
        Perform a periodic action
        Specified by:
        update in interface Updatable
        Parameters:
        deltaMillis - how many milliseconds went by since the last update call
      • shutDown

        public void shutDown()