Metered
Contents
[
Hide
]Inheritance: java.lang.Object
public final class Metered
Provides methods to set metered key.
In this example, an attempt will be made to set metered public and private key
The component jar file:
Metered matered = new Metered();
matered.setMeteredKey("PublicKey", "PrivateKey");
Constructors
Constructor | Description |
---|---|
Metered() | Initializes a new instance of this class. |
Methods
Method | Description |
---|---|
clearMeteredLicense() | Cleans metered license |
equals(Object arg0) | |
flush() | Flushes count data on the server. |
getClass() | |
getConsumptionCredit() | Gets consumption credit |
getConsumptionQuantity() | Gets consumption file size |
hashCode() | |
notify() | |
notifyAll() | |
setMeteredKey(String publicKey, String privateKey) | Sets metered public and private key |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
Metered()
public Metered()
Initializes a new instance of this class.
clearMeteredLicense()
public static void clearMeteredLicense()
Cleans metered license
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
flush()
public static void flush()
Flushes count data on the server. Used only for debug purposes.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getConsumptionCredit()
public static double getConsumptionCredit()
Gets consumption credit
Returns: double - consumption quantity
getConsumptionQuantity()
public static double getConsumptionQuantity()
Gets consumption file size
Returns: double - consumption quantity
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setMeteredKey(String publicKey, String privateKey)
public void setMeteredKey(String publicKey, String privateKey)
Sets metered public and private key
Parameters:
Parameter | Type | Description |
---|---|---|
publicKey | java.lang.String | public key |
privateKey | java.lang.String | private key |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |