Metered

Inheritance: java.lang.Object

public class Metered

Provides methods to set metered key.

Constructors

Constructor Description
Metered() Initializes a new instance of this class.

Methods

Method Description
setMeteredKey(String publicKey, String privateKey) Sets metered public and private key.
getConsumptionQuantity() Retrieves the amount of MBs processed.
getConsumptionCredit() Retrieves the count of credits consumed.

Metered()

public Metered()

Initializes a new instance of this class.

setMeteredKey(String publicKey, String privateKey)

public void setMeteredKey(String publicKey, String privateKey)

Sets metered public and private key.

Parameters:

Parameter Type Description
publicKey java.lang.String A public key.
privateKey java.lang.String A private key.

getConsumptionQuantity()

public static double getConsumptionQuantity()

Retrieves the amount of MBs processed.

Returns: double - A double value that represents the consumption quantity.

getConsumptionCredit()

public static double getConsumptionCredit()

Retrieves the count of credits consumed.

Returns: double - A double value that represents the consumption credit.