com.groupdocs.metadata.licensing

Class Metered



  • public class Metered
    extends Object
    Provides methods to set metered key.
    • Constructor Detail

      • Metered

        public Metered()
        Initializes a new instance of this class.
    • Method Detail

      • setMeteredKey

        public void setMeteredKey(String publicKey,
                                  String privateKey)
                           throws Exception
        Sets metered public and private key.
        Parameters:
        publicKey - A public key.
        privateKey - A private key.
        Throws:
        Exception
      • getConsumptionQuantity

        public static double getConsumptionQuantity()
                                             throws Exception
        Retrieves the amount of MBs processed.
        Returns:
        A double value that represents the consumption quantity.
        Throws:
        Exception
      • getConsumptionCredit

        public static double getConsumptionCredit()
                                           throws Exception
        Retrieves the count of credits consumed.
        Returns:
        A double value that represents the consumption credit.
        Throws:
        Exception