MeteredCountService

Inheritance: java.lang.Object

public class MeteredCountService

This internal class is used to handle customer’s consumption data, the unit is MB.

Methods

MethodDescription
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:

ParameterTypeDescription
countdoubleincreased quantities, in unit of MB

increaseCredit(long credit)

public void increaseCredit(long credit)

Increase customer consumption credit, and try to upload

Parameters:

ParameterTypeDescription
creditlongincreased credit