Metered

Inheritance: java.lang.Object

public class Metered

Provides metered methods for integration

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

ConstructorDescription
Metered()

Fields

FieldDescription
FlushTimeout_internalized

Methods

MethodDescription
equals(Object obj)Determines whether the specified Object, is equal to this instance.
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()

FlushTimeout_internalized

public static int FlushTimeout_internalized

equals(Object obj)

public boolean equals(Object obj)

Determines whether the specified Object, is equal to this instance.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectThe Object to compare with this instance.

Returns: boolean - true if the specified Object is equal to this instance; otherwise, false .

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getConsumptionCredit()

public static BigDecimal getConsumptionCredit()

Gets consumption credit

Returns: java.math.BigDecimal - consumption quantity

getConsumptionQuantity()

public static BigDecimal getConsumptionQuantity()

Gets consumption file size

Returns: java.math.BigDecimal - consumption file size

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:

ParameterTypeDescription
publicKeyjava.lang.Stringpublic key
privateKeyjava.lang.Stringprivate key

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int