com.atlassian.confluence.util
Class DefaultProgress

java.lang.Object
  extended by com.atlassian.confluence.util.DefaultProgress
All Implemented Interfaces:
Progress

public class DefaultProgress
extends java.lang.Object
implements Progress

Thread-safe class for tracking progress.

Avoids some of the issues with using atlassian-core's ProgressWrapper and ProgressMeter classes.


Constructor Summary
DefaultProgress(int total)
           
DefaultProgress(int initial, int total)
           
 
Method Summary
 int getCount()
           
 int getPercentComplete()
           
 int getTotal()
           
 int increment()
           
 int increment(int delta)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultProgress

public DefaultProgress(int total)

DefaultProgress

public DefaultProgress(int initial,
                       int total)
Method Detail

getCount

public int getCount()
Specified by:
getCount in interface Progress

getTotal

public int getTotal()
Specified by:
getTotal in interface Progress

getPercentComplete

public int getPercentComplete()
Specified by:
getPercentComplete in interface Progress

increment

public int increment()
Specified by:
increment in interface Progress

increment

public int increment(int delta)
Specified by:
increment in interface Progress


Copyright © 2003-2013 Atlassian. All Rights Reserved.