java.lang.Object | |
↳ | com.atlassian.confluence.util.EstimatedProgressMeter |
A progress meter to be used in situations where the total cannot be determined efficiently or conveniently up front. Instead, this progress meter will take an estimate for the total and never increment the progress past 99%, unless specifically told to.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets the percent complete of this progress meter to 100%, regardless of where the progress is currently up to.
| |||||||||||
Increases the current count or progress by one.
| |||||||||||
Sets the estimatedTotal.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
estimatedTotal | the estimated total |
---|
IllegalArgumentException | if estimatedTotal is less than zero. |
---|
Sets the percent complete of this progress meter to 100%, regardless of where the progress is currently up to.
Increases the current count or progress by one. Returns the current count after the update.
Sets the estimatedTotal. This method is useful when the estimatedTotal is not available at construction time. Note: this method can only be used when the count has not been incremented.
estimatedTotal | the estimated total |
---|
IllegalArgumentException | if estimatedTotal is less than zero. |
---|---|
IllegalStateException | if this is called after progress has started (that is, incrementCount() has been called at least once)
|