Interface Meter.Builder<B extends Meter.Builder<B,M>, M extends Meter>
- Type Parameters:
B- type of the builderM- type of the meter the builder creates
- All Known Subinterfaces:
Counter.Builder, DistributionSummary.Builder, FunctionalCounter.Builder<T>, Gauge.Builder<N>, Timer.Builder
- Enclosing interface:
Meter
public static interface Meter.Builder<B extends Meter.Builder<B,M>, M extends Meter>
extends Wrapper
Common behavior of specific meter builders.
This builder does not extend the conventional Helidon builder because, typically, "building" a meter involves
registering it which is implementation-specific and therefore should be performed only by each implementation.
We do not want developers to see a build() operation that they should not invoke.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionAdds a single tag to the builder's collection.baseUnit()Returns the base unit the builder will use.Sets the units.Returns the description the builder will use.description(String description) Sets the description.default Bidentity()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 BSets 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 BDeprecated, 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
-
identity
-
tags
-
addTag
-
description
-
baseUnit
-
scope
Deprecated, for removal: This API element is subject to removal in a future version.No-op, will be removed.No-op, will be removed.- Parameters:
scope- ignored; must not benull- Returns:
- updated builder
-
origin
Sets the fully-qualified name of the type which originated the meter. The origin is context formeter builder customization; it is not part of the meter identity or output.The default implementation validates but does not retain the origin for compatibility with existing builder implementations.
- Parameters:
origin- fully-qualified name of the type which originated the meter- Returns:
- updated builder
- Since:
- 27.0.0
-
name
-
tags
-
description
-
baseUnit
-
origin
Returns the fully-qualified name of the type which originated the meter, if set.The origin is customization context and is not part of the meter identity or output. The default implementation returns empty for compatibility with existing builder implementations.
- Returns:
- originating type name, if set
- Since:
- 27.0.0
-
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.Always returns empty because core metrics does not assign scopes.- Returns:
- empty
-