Package uk.ac.starlink.table
Interface ProgressRowSplittable.Target
- Enclosing class:
- ProgressRowSplittable
public static interface ProgressRowSplittable.Target
Callback interface for objects that will be informed about iteration
progress, and also given the opportunity to terminate iteration.
Implementations should be thread-safe; there is no
guarantee about what threads they may be used from.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddone(long count) Reports that progress has finished.voidupdateCount(long count) Reports an updated figure for the progress.
-
Method Details
-
updateCount
Reports an updated figure for the progress.Implementations may throw an IOException from this method; the exception will be thrown during iteration from the
nextmethod of thisProgressRowSplittableand thus halt its iteration.- Parameters:
count- number of iterations so far- Throws:
IOException- to interrupt execution
-
done
void done(long count) Reports that progress has finished.- Parameters:
count- final number of iterations
-