Class CompositeFunctionCounter<T>
java.lang.Object
io.micrometer.core.instrument.AbstractMeter
io.micrometer.core.instrument.composite.CompositeFunctionCounter<T>
- All Implemented Interfaces:
FunctionCounter
,Meter
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.FunctionCounter
FunctionCounter.Builder<T>
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter
Meter.Builder, Meter.Id, Meter.MeterProvider<T extends Meter>, Meter.Type
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
add
(MeterRegistry registry) double
count()
final void
remove
(MeterRegistry registry) Deprecated.Methods inherited from class io.micrometer.core.instrument.AbstractMeter
equals, getId, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micrometer.core.instrument.FunctionCounter
measure
-
Method Details
-
count
public double count()- Specified by:
count
in interfaceFunctionCounter
- Returns:
- The cumulative count since this counter was created.
-
add
-
remove
Deprecated.Does nothing. New registries added to the composite are automatically reflected in each meter belonging to the composite.- Parameters:
registry
- The registry to remove.
-