setValue Method

Sets the value of a Meter object counter to the specified amount. The current value may be obtained by calling getValue.

Syntax
void setValue(long value);
Parameters
value - [in] Required long, which specifies the value to assign to the Meter object counter. A negative value may be specified.
Example
Listener listener = new Listener("sampleApp", "4.0");
Container store = listener.lookupContainer("storeName");
Meter cacheSize = store.lookupMeter("cache size");
cacheSize.setValue(1);
...
See Also
Container Class
Event Class
Listener Class
Meter Class
getValue Method
incrementValue Method