Package com.epicbot.api.shared.util.time
Class SleepTimer
java.lang.Object
com.epicbot.api.shared.util.time.Timer
com.epicbot.api.shared.util.time.SleepTimer
- All Implemented Interfaces:
Completable,Completion
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete()Called on successful completion.voidrun()Called every iteration and called beforeCompletable.isDone()so it runs atleast once.booleansleep()booleansleep(int iteration) Methods inherited from class com.epicbot.api.shared.util.time.Timer
getElapsed, getRemaining, isRunning, reset, setEndIn, stop, toElapsedString, toRemainingStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.epicbot.api.shared.util.details.Completable
isDone
-
Constructor Details
-
SleepTimer
public SleepTimer(int min, int max) -
SleepTimer
public SleepTimer(int period) -
SleepTimer
public SleepTimer(long period)
-
-
Method Details
-
complete
public void complete()Called on successful completion.- Specified by:
completein interfaceCompletion
-
run
public void run()Called every iteration and called beforeCompletable.isDone()so it runs atleast once. -
sleep
public boolean sleep() -
sleep
public boolean sleep(int iteration)
-