Uses of Interface
io.helidon.metrics.api.Clock
Package
Description
Defines the Helidon metrics API so Helidon metrics-capable components can implement metrics simply and without regard for
whether metrics is actually on the runtime path or not or is enabled or not.
-
Uses of Clock in io.helidon.metrics.api
Modifier and TypeMethodDescriptionMeterRegistry.clock()
Returns the defaultClock
in use by the registry.MetricsFactory.clockSystem()
Returns the systemClock
from the underlying metrics implementation.static Clock
Clock.system()
Returns the system clock for the Helidon metrics implementation.Modifier and TypeMethodDescriptionAssigns the clock to be used within the meter registry (e.g., in timers), defaulting to a system clock.MetricsFactory.createMeterRegistry
(Clock clock, MetricsConfig metricsConfig) MetricsFactory.createMeterRegistry
(Clock clock, MetricsConfig metricsConfig, Consumer<Meter> onAddListener, Consumer<Meter> onRemoveListener) Creates a newMeterRegistry
using the providedClock
andMetricsConfig
and enrolling the specified listners with the new meter registry.static Timer.Sample
Starts a timing sample using the specified clock.MetricsFactory.timerStart
(Clock clock) Returns aTimer.Sample
for measuring a duration using the specifiedClock
.