public final class Metered extends Object
Provides methods to set metered key.
The component jar file: Metered matered = new Metered(); matered.setMeteredKey("PublicKey", "PrivateKey");
Constructor and Description |
---|
Metered()
Initializes a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
static void |
clearMeteredLicense()
Cleans metered license
|
static void |
flush()
Flushes count data on the server.
|
static double |
getConsumptionCredit()
Gets consumption credit
|
static double |
getConsumptionQuantity()
Gets consumption file size
|
void |
setMeteredKey(String publicKey,
String privateKey)
Sets metered public and private key
|
public void setMeteredKey(String publicKey, String privateKey)
Sets metered public and private key
publicKey
- public keyprivateKey
- private keypublic static void clearMeteredLicense()
Cleans metered license
public static void flush()
Flushes count data on the server. Used only for debug purposes.
public static double getConsumptionQuantity() throws Exception
Gets consumption file size
Exception
- if Metered API problem.Copyright © 2022 Aspose. All Rights Reserved.