public class Metered extends Object
Provides metered methods for integration
In this example, an attempt will be made to set metered public and private key
// the component jar file:
Metered metered = new Metered();
metered.setMeteredKey("PublicKey", "PrivateKey");
| Constructor and Description |
|---|
Metered() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Determines whether the specified
Object, is equal to this instance. |
static BigDecimal |
getConsumptionCredit()
Gets consumption credit
|
static BigDecimal |
getConsumptionQuantity()
Gets consumption file size
|
void |
setMeteredKey(String publicKey,
String privateKey)
Sets metered public and private key.
|
public static BigDecimal getConsumptionQuantity()
public static BigDecimal getConsumptionCredit()
public void setMeteredKey(String publicKey, String privateKey)
Sets metered public and private key.
If you purchase metered license, when start application, this API should be called, normally, this is enough. However, if always fail to upload consumption data and exceed 24 hours, the license will be set to evaluation status, to avoid such case, you should regularly check the license status, if it is evaluation status, call this API again.publicKey - public keyprivateKey - private keyCopyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.