Class DefaultTimer

  • All Implemented Interfaces:
    Timer

    public class DefaultTimer
    extends java.lang.Object
    implements Timer
    Thin wrapper around Timer
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DefaultTimer.Context  
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultTimer​(com.codahale.metrics.Timer t)  
    • Constructor Detail

      • DefaultTimer

        public DefaultTimer​(com.codahale.metrics.Timer t)
    • Method Detail

      • time

        public Timer.Context time()
        Specified by:
        time in interface Timer
        See Also:
        Timer.time(java.util.concurrent.Callable<T>)
      • getCount

        public long getCount()
        Specified by:
        getCount in interface Timer
        See Also:
        Timer.getCount()