public class Metered
extends java.lang.Object
To learn more, visit the Licensing and Subscription documentation article.
In this example, an attempt will be made to set metered public and private key the component jar file:
Metered matered = new Metered();
matered.setMeteredKey("PublicKey", "PrivateKey");
| Constructor and Description |
|---|
Metered()
Initializes a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
static java.math.BigDecimal |
getConsumptionCredit()
Gets consumption credit
|
static java.math.BigDecimal |
getConsumptionQuantity()
Gets consumption file size
|
void |
setMeteredKey(java.lang.String publicKey,
java.lang.String privateKey)
Sets metered public and private key.
|
public void setMeteredKey(java.lang.String publicKey,
java.lang.String privateKey)
publicKey - public keyprivateKey - private keypublic static java.math.BigDecimal getConsumptionQuantity()
public static java.math.BigDecimal getConsumptionCredit()
throws java.lang.Exception
java.lang.Exception