Package uk.ac.starlink.table
Interface ProgressRowSplittable.Target
-
- Enclosing class:
- ProgressRowSplittable
public static interface ProgressRowSplittable.TargetCallback 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddone(long count)Reports that progress has finished.voidupdateCount(long count)Reports an updated figure for the progress.
-
-
-
Method Detail
-
updateCount
void updateCount(long count) throws java.io.IOExceptionReports 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:
java.io.IOException- to interrupt execution
-
done
void done(long count)
Reports that progress has finished.- Parameters:
count- final number of iterations
-
-