Uses of Interface
io.helidon.metrics.api.Clock
Packages that use 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
Methods in io.helidon.metrics.api that return ClockModifier and TypeMethodDescriptionMeterRegistry.clock()Returns the defaultClockin use by the registry.MetricsFactory.clockSystem()Returns the systemClockfrom the underlying metrics implementation.static ClockClock.system()Returns the system clock for the Helidon metrics implementation.Methods in io.helidon.metrics.api with parameters of type ClockModifier 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 newMeterRegistryusing the providedClockandMetricsConfigand enrolling the specified listners with the new meter registry.static Timer.SampleStarts a timing sample using the specified clock.MetricsFactory.timerStart(Clock clock) Returns aTimer.Samplefor measuring a duration using the specifiedClock.