T - the type of elements being trackedpublic abstract class ProgressTrackerGroup<T> extends Object
ProgressTrackers that
collectively track how far a processing loop has gotten through the elements
it's processing. Individual ProgressTracker instances may be copied,
capturing an independent view of the progress of the system; this turns out
to be useful for some non-trivial processing loops. The furthest point
reached by any ProgressTracker is the one reported.
This class is abstract. Its single extension point is
report(T), which should be overriden to provide a function that
handles the reporting of the supplied element, as appropriate.
| Constructor and Description |
|---|
ProgressTrackerGroup() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
report(T element)
Reports the indicated element.
|
ProgressTracker<T> |
start() |
public final ProgressTracker<T> start()
protected abstract void report(T element)