Interface TimerFactory<T>
- Type Parameters:
T
- The type that theTimerDecorator
decorates.
A factory for the
TimerDecorator
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double[]
The percentiles published by theMeterRegistry
. -
Method Summary
-
Field Details
-
PERCENTILES
static final double[] PERCENTILESThe percentiles published by theMeterRegistry
.
-
-
Method Details
-
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
- TheTicker
instance to use.timeUnit
- TheTimeUnit
to use for this decorator.meterRegistry
- TheMeterRegistry
to use.- Returns:
- The type of the decorated object.
-