public class WaitNotifier extends Object
| Constructor and Description |
|---|
WaitNotifier() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
boolean |
isCancelled() |
void |
reset() |
void |
sleepFor(Duration sleepDuration) |
void |
update() |
void |
waitFor(Supplier<Boolean> action,
Duration waitDuration) |
public void update()
public void cancel()
public void reset()
public boolean isCancelled()
public void waitFor(Supplier<Boolean> action, Duration waitDuration) throws TimeoutException, CancellationException, InterruptedException
public void sleepFor(Duration sleepDuration) throws CancellationException, InterruptedException
Copyright © 2015–2024. All rights reserved.