Packages

 

com.aspose.cad

Class Metered



  • public class Metered
    extends Object

    Provides methods to set metered key.

    In this example, an attempt will be made to set metered public and private key Example: Metered metered = new Metered(); matered.setMeteredKey("PublicKey", "PrivateKey");

    • Constructor Detail

      • Metered

        public Metered()

        Initializes a new instance of this class.

    • Method Detail

      • setMeteredKey

        public void setMeteredKey(String publicKey,
                         String privateKey)
        Sets metered public and private key
        Parameters:
        publicKey - public key
        privateKey - private key
        Throws:
        com.aspose.metered.MeteredAPIException
      • getConsumptionQuantity

        public static BigDecimal getConsumptionQuantity()
        Gets consumption quantity
        Returns:
        consumption quantity
        Throws:
        com.aspose.metered.MeteredAPIException
      • isEvaluation

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

        public 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