com.groupdocs.redaction

Class Metered



  • public class Metered
    extends Object

    Provides methods which allow to activate product with Metered license and retrieve amount of MBs processed. Learn more about Metered licenses <a href="https://purchase.groupdocs.com/faqs/licensing/metered">here</a>.

    • Constructor Detail

      • Metered

        public Metered()

        Creates new instance.

    • Method Detail

      • setMeteredKey

        public final void setMeteredKey(String publicKey,
                         String privateKey)
                                 throws Exception

        Activates product with Metered keys.

        Parameters:
        publicKey - The public key.
        privateKey - The private key.
        Throws:
        Exception
      • getConsumptionQuantity

        public static double getConsumptionQuantity()
                                             throws Exception

        Retrieves amount of MBs processed.

        Returns:
        consumption quantity
        Throws:
        Exception
      • getConsumptionCredit

        public static double getConsumptionCredit()
                                           throws Exception

        Gets consumption credit

        Returns:
        consumption quantity
        Throws:
        Exception