public final class Metered extends Object
In this example, an attempt will be made to set metered public and private key:
Metered metered = new Metered();
metered.setMeteredKey("PublicKey", "PrivateKey");
| Constructor and Description |
|---|
Metered()
Initializes a new instance of the
Metered class. |
| Modifier and Type | Method and Description |
|---|---|
static BigDecimal |
getConsumptionCredit()
Retrieves count of credits consumed.
|
static BigDecimal |
getConsumptionQuantity()
Retrieves amount of MBs processed.
|
void |
setMeteredKey(String publicKey,
String privateKey)
Sets metered public and private key.
|
public Metered()
Metered class.public final void setMeteredKey(String publicKey, String privateKey)
Sets metered public and private key.
publicKey - A public key.privateKey - A private keypublic static BigDecimal getConsumptionQuantity()
public static BigDecimal getConsumptionCredit()
Copyright © 2026. All rights reserved.