public class MeteredCountService extends Object
| Modifier and Type | Method and Description |
|---|---|
double |
getAndResetCount()
Gets and Resets customer consumption file size
|
long |
getAndResetCredit()
Get and Reset customer consumption credit
|
static MeteredCountService |
getInstance() |
void |
increaseCount(double count)
Increase customer consumption file size, and try to upload data
|
void |
increaseCredit(long credit)
Increase customer consumption credit, and try to upload
|
public double getAndResetCount()
public long getAndResetCredit()
public static MeteredCountService getInstance()
public void increaseCount(double count)
count - increased quantities, in unit of MBpublic void increaseCredit(long credit)
credit - increased creditCopyright © 2026. All rights reserved.