Interface Condition
- All Known Implementing Classes:
NoCondition
public interface Condition
-
Method Summary
-
Method Details
-
check
boolean check()Check whether the condition is met. Once a condition is met, this method must returntrueuntil the correspondingTaskhas completed execution.- Returns:
trueif the condition is met.falseotherwise.
-
await
Waits the current thread until the condition is met.- Throws:
InterruptedException- if interrupted while waiting.
-