public abstract String name
This is used when the method name is not appropriate or when there is method overloading and the otherwise generated unique name is unclear.
The package and class names are still used and prepended to this name value.
public abstract String fullName
Provides a complete replacement of the metric name. The package and class names are not used at all.
public abstract int[] buckets
For example with values of 100, 200, 300 there a with 4 bucket ranges of:
0 to 100 milliseconds 100 to 200 milliseconds 200 to 300 milliseconds 300+ milliseconds
Defining buckets means a BucketTimedMetric
will be used instead of a TimedMetric
.
Copyright © 2014. All Rights Reserved.