public class ReportIntervalCounter extends ReportInterval
incremented and retrieved. If a task ends before reaching its next reporting interval the
unreported progress can be retrieve as well.| Constructor and Description |
|---|
ReportIntervalCounter(long theInterval) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCount()
Returns current progress count;
|
long |
getUnreported()
Returns the unreported progress since last report.
|
boolean |
hasUnreported()
Returns
true if there is unreported progress. |
boolean |
increment()
Increments the progress counter by one and returns
true if report interval has been reached. |
boolean |
increment(long theAmount)
Increments the progress counter by the given amount and returns
true if report interval has been reached. |
computeNextReport, getElapsedTime, getInterval, getNextReport, isReport, setIntervalpublic long getCount()
public boolean hasUnreported()
true if there is unreported progress.public long getUnreported()
public boolean increment()
true if report interval has been reached.public boolean increment(long theAmount)
true if report interval has been reached.Copyright © 2010-2016 Stardog Union. All Rights Reserved.