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 double |
getConsumptionCredit()
Retrieves count of credits consumed.
|
static double |
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 double getConsumptionQuantity()
public static double getConsumptionCredit()