Metered
Methods
| Method | Description |
|---|---|
| setMeteredKey(String publicKey, String privateKey) | Sets metered public and private key |
| getConsumptionQuantity() | Gets consumption file size |
| isEvaluation() | Gets evaluation status |
| increaseCount(double uploadMeteringSize) | Increases data counter for absolute value |
| resetMeteredKey() | Removes previously setup license |
| getConsumptionCredit() | Gets consumption credit |
setMeteredKey(String publicKey, String privateKey)
public static void setMeteredKey(String publicKey, String privateKey)
Sets metered public and private key
Parameters:
| Parameter | Type | Description |
|---|---|---|
| publicKey | String | public key |
| privateKey | String | private key |
Throws:
com.aspose.ms.System.ArgumentNullException- if publicKey is null or privateKey is null or publicKey is empty or privateKey is emptycom.aspose.ms.System.InvalidOperationException- Authentication failed.
getConsumptionQuantity()
public static BigDecimal getConsumptionQuantity()
Gets consumption file size
Returns: BigDecimal - consumption quantity
isEvaluation()
public static boolean isEvaluation()
Gets evaluation status
Returns: boolean - Determines whether product is under evaluation or not
increaseCount(double uploadMeteringSize)
public static void increaseCount(double uploadMeteringSize)
Increases data counter for absolute value
Parameters:
| Parameter | Type | Description |
|---|---|---|
| uploadMeteringSize | double | number of bytes to increase |
resetMeteredKey()
public static void resetMeteredKey()
Removes previously setup license
getConsumptionCredit()
public static BigDecimal getConsumptionCredit()
Gets consumption credit
Returns: BigDecimal - consumption quantity