Interface FunctionalCounter.Builder<T>
- Type Parameters:
T- type of the state object
- All Superinterfaces:
Meter.Builder<FunctionalCounter.Builder<T>, FunctionalCounter>, Wrapper, Wrapper
- Enclosing interface:
FunctionalCounter
public static interface FunctionalCounter.Builder<T>
extends Meter.Builder<FunctionalCounter.Builder<T>, FunctionalCounter>
Builder for a
FunctionalCounter.- See Also:
-
Method Summary
Methods inherited from interface Meter.Builder
addTag, baseUnit, 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.Sets the units.Returns the description the builder will use.description(String description) Sets the description.default FunctionalCounter.Builder<T> identity()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 FunctionalCounter.Builder<T> Sets 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 FunctionalCounter.Builder<T> Deprecated, 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
-
stateObject
T stateObject()Returns the state object which would supply the counter value.- Returns:
- state object
-
fn
-