com.groupdocs.comparison.license

Class Metered



  • public class Metered
    extends Object

    Provides methods for applying Metered license.

    • Constructor Detail

      • Metered

        public Metered()

        Initializes a new instance of the Metered class.

    • Method Detail

      • getConsumptionCredit

        public static double getConsumptionCredit()

        Retrieves amount of used credits

        Returns:
        Number of already used credits
      • getConsumptionQuantity

        public static double getConsumptionQuantity()

        Gets consumption quantity

        Returns:
        consumption quantity
      • increaseBytesCount

        public static void increaseBytesCount(double count)

        Increase customer consumption file size

        Parameters:
        count -
      • increaseCreditsByOne

        public static void increaseCreditsByOne()

        Increase customer consumption credit.

      • setMeteredKey

        public final void setMeteredKey(String publicKey,
                         String privateKey)

        Sets metered public and private key

        Parameters:
        publicKey - public key
        privateKey - private key