计量的

Inheritance: java.lang.Object

public final class Metered

提供设置计量密钥的方法。


在此示例中,将尝试设置计量的公钥和私钥

The component jar file:
  
 	Metered metered = new Metered();
 	matered.setMeteredKey("PublicKey", "PrivateKey");

构造函数

构造函数描述
Metered()初始化此类的新实例。

方法

方法描述
equals(Object arg0)
getClass()
getConsumptionCredit()获取消耗积分
getConsumptionQuantity()获取消耗文件大小
hashCode()
notify()
notifyAll()
setMeteredKey(String publicKey, String privateKey)设置计量的公钥和私钥
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Metered()

public Metered()

初始化此类的新实例。

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

参数类型描述
arg0java.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:

参数类型描述
publicKeyjava.lang.String公钥
privateKeyjava.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:

参数类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

参数类型描述
arg0long
arg1int