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()Deprecated, for removal: This API element is subject to removal in a future version.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 new caller-ownedMeterRegistryusing the providedClockandMetricsConfigand enrolling the specified listeners with the new meter registry.static Timer.SampleDeprecated, for removal: This API element is subject to removal in a future version.this method getsMetricsFactoryfromServiceRegistry, which may be inefficient.MetricsFactory.timerStart(Clock clock) Returns aTimer.Samplefor measuring a duration using the specifiedClock.
MetricsFactory.clockSystem(), you can getMetricsFactoryfromServices.get(Class)for the global metrics factory