Metered
Leave feedback
On this page
Inheritance: java.lang.Object
public class Metered
Provides methods for applying Metered license.
| Constructor | Description |
|---|---|
| Metered() |
| Method | Description |
|---|---|
| setMeteredKey(String publicKey, String privateKey) | Activates product with Metered keys. |
| getConsumptionQuantity() | Retrieves amount of MBs processed. |
| getConsumptionCredit() | Retrieves count of credits consumed. |
public Metered()
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 |
public static Double getConsumptionQuantity()
Retrieves amount of MBs processed.
Returns: java.lang.Double - processed MB count
public static Double getConsumptionCredit()
Retrieves count of credits consumed.
Returns: java.lang.Double - consumed credits count
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.