public class Metered
extends com.groupdocs.search.MeteredAssistant
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 and Description |
---|
Metered()
Initializes a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
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) throws Exception
publicKey
- public keyprivateKey
- private keyException
public static double getConsumptionQuantity() throws Exception
Exception