Class SleepTimer

java.lang.Object
com.epicbot.api.shared.util.time.Timer
com.epicbot.api.shared.util.time.SleepTimer
All Implemented Interfaces:
Completable, Completion

public abstract class SleepTimer extends Timer implements Completable, Completion
  • 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:
      complete in interface Completion
    • run

      public void run()
      Called every iteration and called before Completable.isDone() so it runs atleast once.
    • sleep

      public boolean sleep()
    • sleep

      public boolean sleep(int iteration)