Class DefaultCounter

  • All Implemented Interfaces:
    Counter

    public class DefaultCounter
    extends java.lang.Object
    implements Counter
    Thin wrapper around Counter
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultCounter​(com.codahale.metrics.Counter c)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dec()  
      long getCount()  
      void inc()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultCounter

        public DefaultCounter​(com.codahale.metrics.Counter c)
    • Method Detail

      • inc

        public void inc()
        Specified by:
        inc in interface Counter
        See Also:
        Counter.inc()
      • getCount

        public long getCount()
        Specified by:
        getCount in interface Counter
        See Also:
        Counter.getCount()
      • dec

        public void dec()
        Specified by:
        dec in interface Counter
        See Also:
        Counter.dec()