计量的
内容
[
隐藏
]Inheritance: java.lang.Object
public final class Metered
提供设置计量密钥的方法。
在此示例中,将尝试设置计量的公钥和私钥
The component jar file:
Metered metered = new Metered();
matered.setMeteredKey("PublicKey", "PrivateKey");
构造函数
| 构造函数 | 描述 |
|---|---|
| Metered() | 初始化此类的新实例。 |
方法
Metered()
public Metered()
初始化此类的新实例。
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getConsumptionCredit()
public static double getConsumptionCredit()
获取消耗积分
Returns: double - 消耗数量
getConsumptionQuantity()
public static double getConsumptionQuantity()
获取消耗文件大小
Returns: double - 消耗数量
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)
设置计量的公钥和私钥
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| publicKey | java.lang.String | 公钥 |
| privateKey | java.lang.String | 私钥 |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long | |
| arg1 | int |