public class Metered
extends java.lang.Object
Metered metered = new Metered();
metered.setMeteredKey("PublicKey", "PrivateKey");
Constructor and Description |
---|
Metered()
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
static double |
getConsumptionCredit()
Returns the currently consumed number of credits.
|
static double |
getConsumptionQuantity()
Returns the currently consumed number of megabytes.
|
void |
setMeteredKey(java.lang.String publicKey,
java.lang.String privateKey)
Enables metered licensing for the component by specifying appropriate public and private metered keys.
|
public void setMeteredKey(java.lang.String publicKey, java.lang.String privateKey)
publicKey
- The public metered key.privateKey
- The private metered key.public static double getConsumptionQuantity()
public static double getConsumptionCredit()