Constructor and Description |
---|
Metered()
Initializes a new instance of Metered class.
|
Modifier and Type | Method and Description |
---|---|
static double |
getConsumptionCredit()
Gets the consumption credit.
|
static double |
getConsumptionQuantity()
Retrieves the amount of MBs processed.
|
static void |
increaseBytesCount(double bytesCount)
Increase customer consumption file size
|
static void |
increaseCreditsByOne()
Increase customer consumption credit.
|
static void |
reportCreditsUsage(long usedCredits) |
static void |
reportUsageInBytes(long bytesLength) |
void |
setMeteredKey(String publicKey,
String privateKey)
Activates the product with Metered keys.
|
public final void setMeteredKey(String publicKey, String privateKey)
Activates the product with Metered keys.
publicKey
- The public key.privateKey
- The private key.public static double getConsumptionQuantity() throws Exception
Retrieves the amount of MBs processed.
public static double getConsumptionCredit() throws Exception
Gets the consumption credit.
Exception
public static void reportUsageInBytes(long bytesLength)
public static void reportCreditsUsage(long usedCredits)
public static void increaseBytesCount(double bytesCount)
bytesCount
- bytes countpublic static void increaseCreditsByOne()