Interface TimerFactory<T>

Type Parameters:
T - The type that the TimerDecorator decorates.
All Superinterfaces:
Indexed<Class<T>>

public interface TimerFactory<T> extends Indexed<Class<T>>
A factory for the TimerDecorator.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final double[]
    The percentiles published by the MeterRegistry.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from interface org.forgerock.util.Indexed

    getKey
  • Field Details

    • PERCENTILES

      static final double[] PERCENTILES
      The percentiles published by the MeterRegistry.
  • 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 the TimerDecorator.
      logger - The logger to use for printing decorator's output.
      ticker - The Ticker instance to use.
      timeUnit - The TimeUnit to use for this decorator.
      meterRegistry - The MeterRegistry to use.
      Returns:
      The type of the decorated object.