Class Epochs.Epoch
java.lang.Object
uk.ac.manchester.spinnaker.alloc.allocator.Epochs.Epoch
- Enclosing class:
- Epochs
A waitable epoch checkpoint.
- Author:
- Donal Fellows, Andrew Rowley
- 
Method SummaryModifier and TypeMethodDescriptiongetChanged(Duration timeout) Get the set of changed items.booleanisValid()Check if this epoch is the current one.booleanwaitForChange(Duration timeout) Wait, for up totimeout, for a change.
- 
Method Details- 
waitForChangeWait, for up totimeout, for a change.- Parameters:
- timeout- The time to wait, in milliseconds.
- Returns:
- Whether the item has changed or not.
- Throws:
- InterruptedException- If the wait is interrupted.
 
- 
getChangedGet the set of changed items.- Parameters:
- timeout- The timeout to wait for one item to change.
- Returns:
- The changed items.
- Throws:
- InterruptedException- If the wait is interrupted.
 
- 
isValidpublic boolean isValid()Check if this epoch is the current one.- Returns:
- Whether this is a valid epoch.
 
 
-