Metered
Leave feedback
On this page
Inheritance: java.lang.Object
public class Metered
| Constructor | Description |
|---|---|
| Metered() | Initializes a new instance of this class. |
| Method | Description |
|---|---|
| setMeteredKey(String publicKey, String privateKey) | Activates product with Metered keys. |
| getConsumptionQuantity() | Retrieves amount of MBs processed. |
| getConsumptionCredit() | Retrieves count of credits consumed. |
| increaseBytesCount(double length) | |
| increaseCreditsByBytesCount(double length) | |
| increaseCreditsByOne() |
public Metered()
Initializes a new instance of this class.
public final void setMeteredKey(String publicKey, String privateKey)
Activates product with Metered keys.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| publicKey | java.lang.String | public key |
| privateKey | java.lang.String | private key |
public static double getConsumptionQuantity()
Retrieves amount of MBs processed.
Returns: double - consumption quantity
public static double getConsumptionCredit()
Retrieves count of credits consumed.
Returns: double - consumption credit
public static void increaseBytesCount(double length)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| length | double |
public static void increaseCreditsByBytesCount(double length)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| length | double |
public static void increaseCreditsByOne()
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.