com.groupdocs.annotation.license

Class Metered



  • public class Metered
    extends Object

    Provides methods for applying Metered license.

    • Constructor Detail

      • Metered

        public Metered()

        Initializes a new instance of this class.

    • Method Detail

      • getConsumptionCredit

        public static double getConsumptionCredit()
                                           throws Exception

        Retrieves count of credits consumed.

        Returns:
        consumption credit
        Throws:
        Exception
      • getConsumptionQuantity

        public static double getConsumptionQuantity()
                                             throws Exception

        Retrieves amount of MBs processed.

        Returns:
        consumption quantity
        Throws:
        Exception
      • increaseBytesCount

        public static void increaseBytesCount(double length)
      • increaseCreditsByOne

        public static void increaseCreditsByOne()
      • setMeteredKey

        public final void setMeteredKey(String publicKey,
                         String privateKey)

        Activates product with Metered keys.

        Parameters:
        publicKey - public key
        privateKey - private key