Package com.github.kagkarlsson.scheduler
Class Waiter
- java.lang.Object
-
- com.github.kagkarlsson.scheduler.Waiter
-
public class Waiter extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doWait()
Duration
getWaitDuration()
boolean
isWaiting()
boolean
wake()
void
wakeOrSkipNextWait()
-
-
-
Method Detail
-
doWait
public void doWait() throws InterruptedException
- Throws:
InterruptedException
-
wake
public boolean wake()
-
wakeOrSkipNextWait
public void wakeOrSkipNextWait()
-
getWaitDuration
public Duration getWaitDuration()
-
isWaiting
public boolean isWaiting()
-
-