incrementValue Method

Increments the value of a Meter object counter by one, or by a specified amount. The current value may be obtained by calling getValue.

Syntax
void incrementValue([optional] long increment);
Parameters
increment - [in] Optional long, which specifies the amount by which to increase the value of the Meter object counter. When no value is specified, the counter is automatically incremented by one. A value of NULL is not supported.
Example
Listener listener = new Listener("sampleApp", "4.0");
Meter cacheSize = listener.lookupMeter("cache size");

cacheSize.incrementValue(10);
...
See Also
Container Class
Event Class
Listener Class
Meter Class
getValue Method
setValue Method