Metered

Inheritance: java.lang.Object

public class Metered

Provides methods for applying Metered license.

Constructors

Constructor Description
Metered()

Methods

Method Description
setMeteredKey(String publicKey, String privateKey) Activates product with Metered keys.
getConsumptionQuantity() Retrieves amount of MBs processed.
getConsumptionCredit() Retrieves count of credits consumed.

Metered()

public Metered()

setMeteredKey(String publicKey, String privateKey)

public void setMeteredKey(String publicKey, String privateKey)

Activates product with Metered keys.

Parameters:

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

getConsumptionQuantity()

public static Double getConsumptionQuantity()

Retrieves amount of MBs processed.

Returns: java.lang.Double - processed MB count

getConsumptionCredit()

public static Double getConsumptionCredit()

Retrieves count of credits consumed.

Returns: java.lang.Double - consumed credits count