recordValue Method

Changes the value of the requesting Accumulator and optionally, increments the counter value of the associated Event object.

Syntax
void recordValue(long value, [optional] boolean includeEvent);
Parameters
value - [in] Required long, which specifies the value to assign to the Accumulator object counter.
includeEvent - [in] Optional Boolean value (default is false) that indicates whether the value of the Event counter associated with this Accumulator should be incremented as well. When set to true, then the counter of the associated Event will be incremented by 1.
Example
Listener listener = new Listener("sampleApp", "4.0");
Container store = listener.lookupContainer("storeName");
Event creations = store.lookupEvent(PCHeventClass.RPC, "document creations", false );
Accumulator creationTime = creations.lookupAccumulator(Listener.DURATION);
...
numCreations.recordValue(1, true);

...
See Also
Accumulator Class
Container Class
Event Class
Listener Class
recordEvent Method