Interface TimerFactory<T>
-
- Type Parameters:
T- The type that theTimerDecoratordecorates.
public interface TimerFactory<T> extends Indexed<Class<T>>
A factory for theTimerDecorator.
-
-
Field Summary
Fields Modifier and Type Field Description static double[]PERCENTILESThe percentiles published by theMeterRegistry.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Twrap(T delegate, org.slf4j.Logger logger, com.google.common.base.Ticker ticker, TimeUnit timeUnit, org.forgerock.monitoring.api.instrument.MeterRegistry meterRegistry)Wraps the decorator to be applied on the given object.
-
-
-
Method Detail
-
wrap
T wrap(T delegate, org.slf4j.Logger logger, com.google.common.base.Ticker ticker, TimeUnit timeUnit, org.forgerock.monitoring.api.instrument.MeterRegistry meterRegistry)
Wraps the decorator to be applied on the given object.- Parameters:
delegate- The object to decorate with theTimerDecorator.logger- The logger to use for printing decorator's output.ticker- TheTickerinstance to use.timeUnit- TheTimeUnitto use for this decorator.meterRegistry- TheMeterRegistryto use.- Returns:
- The type of the decorated object.
-
-