public interface Progress extends Serializable
| Modifier and Type | Field and Description | 
|---|---|
| static String | BYTESThe predefined unit type "bytes". | 
| static String | ENTITIESThe predefined unit type "entities". | 
| Modifier and Type | Method and Description | 
|---|---|
| long | getCompleted()The amount completed, in terms of units specified by  getUnit(). | 
| long | getTotal()The total amount being processed, in terms of units specified by  getUnit(). | 
| String | getUnit()The unit type represented by the  getCompleted()andgetTotal()numbers. | 
| boolean | isApproximate()Returns true if the progress statistics are approximate, for example if the total number of
 entities in the collection is not known. | 
static final String ENTITIES
static final String BYTES
long getCompleted()
getUnit().long getTotal()
getUnit(). For some
 processes, this information may not be available - in these cases, -1 will be returned.String getUnit()
getCompleted() and getTotal() numbers. There
 are some predefined unit types (BYTES, ENTITIES), but any unit can be
 used.boolean isApproximate()
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.