Class DelegateRegistryCounter

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

    public class DelegateRegistryCounter
    extends com.codahale.metrics.Counter
    A counter 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

      • DelegateRegistryCounter

        public DelegateRegistryCounter​(com.codahale.metrics.Counter primaryCounter,
                                       com.codahale.metrics.Counter delegateCounter)
    • Method Detail

      • inc

        public void inc()
        Overrides:
        inc in class com.codahale.metrics.Counter
      • inc

        public void inc​(long n)
        Overrides:
        inc in class com.codahale.metrics.Counter
      • dec

        public void dec()
        Overrides:
        dec in class com.codahale.metrics.Counter
      • dec

        public void dec​(long n)
        Overrides:
        dec in class com.codahale.metrics.Counter
      • getCount

        public long getCount()
        Specified by:
        getCount in interface com.codahale.metrics.Counting
        Overrides:
        getCount in class com.codahale.metrics.Counter
      • getPrimaryCounter

        public com.codahale.metrics.Counter getPrimaryCounter()
      • getDelegateCounter

        public com.codahale.metrics.Counter getDelegateCounter()