Annotation Interface Metrics.Timed
- Enclosing class:
Metrics
The annotated method will be timed.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhether the defined name invalue()is an absolute name, or relative to the class containing the annotated element.Description of the metric.Deprecated, for removal: This API element is subject to removal in a future version.Core metrics ignores this value, and this element will be removed.Additional tags of the metric.Unit of the metric, defaults toMeter.BaseUnits.NANOSECONDS.Name of the timer.
-
Element Details
-
value
-
scope
Deprecated, for removal: This API element is subject to removal in a future version.Core metrics ignores this value, and this element will be removed.Scope value retained for compatibility; core metrics ignores it.- Returns:
- configured value
- Default:
"application"
-
description
-
tags
-
absoluteName
boolean absoluteNameWhether the defined name invalue()is an absolute name, or relative to the class containing the annotated element.- Returns:
trueif the name is absolute,falseotherwise.
- Default:
false
-
unit
String unitUnit of the metric, defaults toMeter.BaseUnits.NANOSECONDS.- Returns:
- metric unit
- Default:
"nanoseconds"
-