public class MeteredCountService extends Object
Modifier and Type | Method and Description |
---|---|
double |
getAndResetCount()
Gets and Resets customer consumption data
|
static MeteredCountService |
getInstance() |
void |
increaseCount(double count)
Increase customer consumption data, and try to upload data
|
public static MeteredCountService getInstance()
public void increaseCount(double count)
count
- increased quantities, in unit of MBpublic double getAndResetCount()