Package com.atlassian.confluence.util
Class DefaultProgress
- java.lang.Object
-
- com.atlassian.confluence.util.DefaultProgress
-
- All Implemented Interfaces:
Progress
,Serializable
public class DefaultProgress extends Object implements Progress
Thread-safe class for tracking progress.
Avoids some of the issues with using atlassian-core's ProgressWrapper and ProgressMeter classes.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultProgress(int total)
DefaultProgress(int initial, int total)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCount()
int
getPercentComplete()
int
getTotal()
int
increment()
int
increment(int delta)
-
-
-
Method Detail
-
getPercentComplete
public int getPercentComplete()
- Specified by:
getPercentComplete
in interfaceProgress
-
-