Interface SpallocAPI.Waitable
- All Known Subinterfaces:
- SpallocAPI.Job,- SpallocAPI.Jobs,- SpallocAPI.Machine
- Enclosing interface:
- SpallocAPI
public static interface SpallocAPI.Waitable
A thing that may be waited upon.
- Author:
- Donal Fellows
- 
Method SummaryModifier and TypeMethodDescriptionbooleanwaitForChange(@NotNull Duration timeout) Wait for the object to (maybe) change, or for the timeout to expire.
- 
Method Details- 
waitForChangeWait for the object to (maybe) change, or for the timeout to expire. This is a best-effort method.This method does not throw InterruptedException; on interruption, it simply returns early (but the interrupted status of the thread is set).- Parameters:
- timeout- How long to wait.
- Returns:
- True if the wait was interrupted, False if the timeout expired
 
 
-