com.groupdocs.search.licensing

Class Metered

  • java.lang.Object
    • com.groupdocs.search.MeteredAssistant
      • com.groupdocs.search.licensing.Metered


  • public class Metered
    extends com.groupdocs.search.MeteredAssistant
    Provides methods to set metered key.

    Learn more

    The example demonstrates a typical usage of the class.

     
     try {
         Metered metered = new Metered();
         metered.setMeteredKey("PublicKey", "PrivateKey");
     }
     catch (java.lang.Exception ex) {
         // ...
     }
     
     
    • 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 - public key
        privateKey - private key
        Throws:
        Exception
      • getConsumptionQuantity

        public static double getConsumptionQuantity()
                                             throws Exception
        Gets consumption file size
        Returns:
        consumption quantity
        Throws:
        Exception
      • getConsumptionCredit

        public static double getConsumptionCredit()
                                           throws Exception
        Gets consumption credit
        Returns:
        consumption quantity
        Throws:
        Exception