com.groupdocs.assembly

Class Metered

  • java.lang.Object
    • com.groupdocs.assembly.Metered


  • public class Metered
    extends java.lang.Object
    Provides methods to work with metered licensing. In this example, an attempt to set metered public and private keys is made:
      
     Metered metered = new Metered();
     metered.setMeteredKey("PublicKey", "PrivateKey");
      
     
    • Constructor Summary

      Constructors 
      Constructor and Description
      Metered()
      Creates a new instance of this class.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static double getConsumptionQuantity()
      Returns the currently consumed number of megabytes.
      void setMeteredKey(java.lang.String publicKey, java.lang.String privateKey)
      Enables metered licensing for the component by specifying appropriate public and private metered keys.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Metered

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

      • setMeteredKey

        public void setMeteredKey(java.lang.String publicKey,
                                  java.lang.String privateKey)
        Enables metered licensing for the component by specifying appropriate public and private metered keys.
        Parameters:
        publicKey - The public metered key.
        privateKey - The private metered key.
      • getConsumptionQuantity

        public static double getConsumptionQuantity()
        Returns the currently consumed number of megabytes.
        Returns:
        The currently consumed number of megabytes.