public class ReportInterval extends Object
indicates whenever the progress reached or exceeded the report
interval. This class is thread-safe.| Constructor and Description |
|---|
ReportInterval(long theInterval) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
computeNextReport(long theValue)
Returns the smallest integer greater than
theValue that is divisable by mInterval. |
long |
getElapsedTime()
Returns the elapsed time since this class was created.
|
long |
getInterval()
Returns the interval for reports.
|
protected long |
getNextReport() |
boolean |
isReport(long theValue)
Returns
true if the given progress value reached or exceeded the next report value and if so updates the next report
value to be greater than theValueby. |
void |
setInterval(long theInterval) |
public long getInterval()
public void setInterval(long theInterval)
protected long getNextReport()
public boolean isReport(long theValue)
true if the given progress value reached or exceeded the next report value and if so updates the next report
value to be greater than theValueby.protected long computeNextReport(long theValue)
theValue that is divisable by mInterval.public long getElapsedTime()
Copyright © 2010-2016 Stardog Union. All Rights Reserved.