Packages

 

com.aspose.cad

Class Metered



  • public final class Metered
    extends Object
    • Method Detail

      • setMeteredKey

        public static void setMeteredKey(String publicKey,
                                         String privateKey)
        Sets metered public and private key
        Parameters:
        publicKey - public key
        privateKey - private key
        Throws:
        com.aspose.ms.System.ArgumentNullException - if publicKey is null or privateKey is null or publicKey is empty or privateKey is empty
        com.aspose.ms.System.InvalidOperationException - Authentication failed.
      • getConsumptionQuantity

        public static BigDecimal getConsumptionQuantity()
        Gets consumption file size
        Returns:
        consumption quantity
      • isEvaluation

        public static boolean isEvaluation()
        Gets evaluation status
        Returns:
        Determines whether product is under evaluation or not
      • increaseCount

        public static void increaseCount(double uploadMeteringSize)
        Increases data counter for absolute value
        Parameters:
        uploadMeteringSize - number of bytes to increase
      • resetMeteredKey

        public static void resetMeteredKey()

        Removes previously setup license

      • getConsumptionCredit

        public static BigDecimal getConsumptionCredit()

        Gets consumption credit

        Returns:
        consumption quantity