Metered
Contents
[
Hide
]
Inheritance: java.lang.Object
public class Metered
Provides methods to apply metered license to Comparison.
- More about Metered licensing: Metered Licensing FAQ
- More about GroupDocs.Comparison licensing: Evaluation Limitations and Licensing
Short example usage:
final Metered metered = new Metered();
metered.setMeteredKey(publicKey, privateKey);
Constructors
| Constructor | Description |
|---|---|
| Metered() | Initializes a new instance of the Metered class. |
Methods
| Method | Description |
|---|---|
| getConsumptionQuantity() | Gets consumption quantity. |
| getConsumptionCredit() | Retrieves amount of used credits. |
| setMeteredKey(String publicKey, String privateKey) | Applies metered license using public and private keys. |
Metered()
public Metered()
Initializes a new instance of the Metered class.
getConsumptionQuantity()
public static double getConsumptionQuantity()
Gets consumption quantity.
Returns: double - consumption quantity
getConsumptionCredit()
public static double getConsumptionCredit()
Retrieves amount of used credits.
Returns: double - number of already used credits
setMeteredKey(String publicKey, String privateKey)
public final void setMeteredKey(String publicKey, String privateKey)
Applies metered license using public and private keys.
Example usage:
final Metered metered = new Metered();
metered.setMeteredKey(publicKey, privateKey);
Parameters:
| Parameter | Type | Description |
|---|---|---|
| publicKey | java.lang.String | Public key |
| privateKey | java.lang.String | Private key |