MeteredCountService
Inheritance: java.lang.Object
public class MeteredCountService
This internal class is used to handle customer’s consumption data, the unit is MB.
Methods
| Method | Description |
|---|---|
| getInstance() | |
| increaseCount(double count) | Increase customer consumption file size, and try to upload data |
| increaseCredit(long credit) | Increase customer consumption credit, and try to upload |
getInstance()
public static MeteredCountService getInstance()
Returns: MeteredCountService
increaseCount(double count)
public void increaseCount(double count)
Increase customer consumption file size, and try to upload data
Parameters:
| Parameter | Type | Description |
|---|---|---|
| count | double | increased quantities, in unit of MB |
increaseCredit(long credit)
public void increaseCredit(long credit)
Increase customer consumption credit, and try to upload
Parameters:
| Parameter | Type | Description |
|---|---|---|
| credit | long | increased credit |