getValue Method

Returns the current value of a Meter object counter. Once the current value is obtained, the setValue or incrementValue method may be called to change the value.

Syntax
long getValue();
Parameters
None.
Example
Listener listener = new Listener("sampleApp", "4.0");
Container store = listener.lookupContainer("storeName");
Meter cacheSize = store.lookupMeter("cache size");
...
long value = cacheSize.getValue();
...
See Also
Container Class
Event Class
Listener Class
Meter Class
incrementValue Method
setValue Method