For improved performance, each statistic may be referred to by
its descriptor.

For optimal performance, each statistic may be referred to by
its id in the statistics object. Note that
ids can not be mapped back to their name and methods that take ids
are unsafe. It is important to call the correct type of method
for the given id. For example if your stat is a long then incLong
must be called instead of incInt.

Note that as of the 5.1 release the incInt,
incLong, and incDouble methods no longer
return the new value of the statistic. They now return void.
This incompatible change was made
to allow for a more efficient concurrent increment implementation.

setLong(String name,
long value)
Sets the value of a named statistic of type long.

Method Detail

close

void close()

Closes these statistics. After statistics have been closed, they
are no longer archived.
A value access on a closed statistics always results in zero.
A value modification on a closed statistics is ignored.