Interface Timer.Builder
- All Superinterfaces:
Meter.Builder<Timer.Builder, Timer>, Wrapper, Wrapper
- Enclosing interface:
Timer
Builder for a new
Timer.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionUnits for the timer; developers are encouraged to usebaseUnit(java.util.concurrent.TimeUnit)instead.default Timer.BuilderUnits for the timer.buckets()Returns the bucket boundary values set in the builder, if any.Sets the boundary boundaries.Returns the maximum expected value set in the builder, if any.Sets the maximum expected value the timer is expected to record.Returns the minimum expected value set in the builder, if any.Sets the minimum expected value the timer is expected to record.Returns the percentiles set in the builder, if any.percentiles(double... percentiles) Sets the percentiles to compute and publish (expressing, for example, the 95th percentile as 0.95).Returns the setting for publishing percentile histogram.publishPercentileHistogram(boolean value) Prepares the timer to publish a percentile histogram.Methods inherited from interface Meter.Builder
addTag, baseUnit, description, description, identity, name, origin, origin, scope, scope, tags, tagsModifier and TypeMethodDescriptionAdds a single tag to the builder's collection.baseUnit()Returns the base unit the builder will use.Returns the description the builder will use.description(String description) Sets the description.default Timer.Builderidentity()Returns the type-correct "this".name()Returns the name the builder will use.origin()Returns the fully-qualified name of the type which originated the meter, if set.default Timer.BuilderSets the fully-qualified name of the type which originated the meter.scope()Deprecated, for removal: This API element is subject to removal in a future version.Core metrics does not assign scopes, and this method will be removed.default Timer.BuilderDeprecated, for removal: This API element is subject to removal in a future version.No-op, will be removed.tags()Returns the tags the builder will use.Sets the tags to use in identifying the build meter.
-
Method Details
-
baseUnit
Units for the timer; developers are encouraged to usebaseUnit(java.util.concurrent.TimeUnit)instead.By convention and specification, Prometheus output always uses
SECONDS. Helidon's JSON output honors thebaseUnitsetting if configuration so indicates, and Helidon requires the value to be one of theTimeUnitenum values. (See the Helidon SE metrics documentation about understanding the JSON metrics data format.)- Specified by:
baseUnitin interfaceMeter.Builder<Timer.Builder, Timer>- Parameters:
baseUnit- timer unit- Returns:
- updated builder
-
baseUnit
Units for the timer.By convention and specification, Prometheus output always uses
SECONDS. Helidon's JSON output honors thebaseUnitsetting if configuration so indicates. (See the Helidon SE metrics documentation about understanding the JSON metrics data format.)- Parameters:
baseUnit- timer unit- Returns:
- updated builder
-
percentiles
Sets the percentiles to compute and publish (expressing, for example, the 95th percentile as 0.95).- Parameters:
percentiles- percentiles to compute and publish- Returns:
- updated builder
-
buckets
Sets the boundary boundaries.- Parameters:
buckets- boundary boundaries- Returns:
- updated builder
-
minimumExpectedValue
Sets the minimum expected value the timer is expected to record.- Parameters:
min- minimum expected value- Returns:
- updated builder
-
maximumExpectedValue
Sets the maximum expected value the timer is expected to record.- Parameters:
max- maximum expected value- Returns:
- updated builder
-
publishPercentileHistogram
Prepares the timer to publish a percentile histogram.- Parameters:
value- whether to publish a percentile histogram- Returns:
- updated builder
-
percentiles
-
buckets
-
minimumExpectedValue
-
maximumExpectedValue
-
publishPercentileHistogram
-