- Type Parameters:
T
- type of the state object
- All Superinterfaces:
Meter.Builder<FunctionalCounter.Builder<T>,
,FunctionalCounter> 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 io.helidon.metrics.api.Meter.Builder
addTag, baseUnit, baseUnit, description, description, identity, name, scope, scope, tags, tags
-
Method Details
-
stateObject
T stateObject()Returns the state object which would supply the counter value.- Returns:
- state object
-
fn
Returns the function which, when applied to the state object, returns the counter value.- Returns:
- function returning the counter value
-