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 TypeMethodDescriptionvoid
done
(long count) Reports that progress has finished.void
updateCount
(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
next
method of thisProgressRowSplittable
and 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
-