Package net.starype.quiz.api.game
Class TimeOutEnding
- java.lang.Object
-
- net.starype.quiz.api.game.TimeOutEnding
-
- All Implemented Interfaces:
Updatable
,RoundEndingPredicate
public class TimeOutEnding extends java.lang.Object implements RoundEndingPredicate, Updatable
-
-
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.RoundEndingPredicate
and, or
-
-
-
-
Method Detail
-
startTimer
public void startTimer(java.lang.Runnable checkEndingCallback, UpdatableHandler updatableHandler)
-
ends
public boolean ends()
- Specified by:
ends
in interfaceRoundEndingPredicate
-
update
public void update(long deltaMillis)
Description copied from interface:Updatable
Perform a periodic action
-
shutDown
public void shutDown()
-
-