Class DelegateRegistryTimer

  • All Implemented Interfaces:
    com.codahale.metrics.Counting, com.codahale.metrics.Metered, com.codahale.metrics.Metric, com.codahale.metrics.Sampling

    public class DelegateRegistryTimer
    extends com.codahale.metrics.Timer
    A timer implementation that is aware of both primary and delegate metrics belonging to different registries and able to update metrics in multiple registries
    See Also:
    SolrDelegateRegistryMetricsContext
    • Constructor Detail

      • DelegateRegistryTimer

        public DelegateRegistryTimer​(com.codahale.metrics.Clock clock,
                                     com.codahale.metrics.Timer primaryTimer,
                                     com.codahale.metrics.Timer delegateTimer)
    • Method Detail

      • update

        public void update​(long duration,
                           TimeUnit unit)
        Overrides:
        update in class com.codahale.metrics.Timer
      • update

        public void update​(Duration duration)
        Overrides:
        update in class com.codahale.metrics.Timer
      • time

        public <T> T time​(Callable<T> event)
                   throws Exception
        Overrides:
        time in class com.codahale.metrics.Timer
        Throws:
        Exception
      • timeSupplier

        public <T> T timeSupplier​(Supplier<T> event)
        Overrides:
        timeSupplier in class com.codahale.metrics.Timer
      • time

        public void time​(Runnable event)
        Overrides:
        time in class com.codahale.metrics.Timer
      • time

        public com.codahale.metrics.Timer.Context time()
        Overrides:
        time in class com.codahale.metrics.Timer
      • getCount

        public long getCount()
        Specified by:
        getCount in interface com.codahale.metrics.Counting
        Specified by:
        getCount in interface com.codahale.metrics.Metered
        Overrides:
        getCount in class com.codahale.metrics.Timer
      • getFifteenMinuteRate

        public double getFifteenMinuteRate()
        Specified by:
        getFifteenMinuteRate in interface com.codahale.metrics.Metered
        Overrides:
        getFifteenMinuteRate in class com.codahale.metrics.Timer
      • getFiveMinuteRate

        public double getFiveMinuteRate()
        Specified by:
        getFiveMinuteRate in interface com.codahale.metrics.Metered
        Overrides:
        getFiveMinuteRate in class com.codahale.metrics.Timer
      • getMeanRate

        public double getMeanRate()
        Specified by:
        getMeanRate in interface com.codahale.metrics.Metered
        Overrides:
        getMeanRate in class com.codahale.metrics.Timer
      • getOneMinuteRate

        public double getOneMinuteRate()
        Specified by:
        getOneMinuteRate in interface com.codahale.metrics.Metered
        Overrides:
        getOneMinuteRate in class com.codahale.metrics.Timer
      • getSnapshot

        public com.codahale.metrics.Snapshot getSnapshot()
        Specified by:
        getSnapshot in interface com.codahale.metrics.Sampling
        Overrides:
        getSnapshot in class com.codahale.metrics.Timer
      • getPrimaryTimer

        public com.codahale.metrics.Timer getPrimaryTimer()
      • getDelegateTimer

        public com.codahale.metrics.Timer getDelegateTimer()