Class MultiTimerContext

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class MultiTimerContext
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Useful for contributing to multiple timers with a single auto-closeable.
    • Constructor Summary

      Constructors 
      Constructor Description
      MultiTimerContext​(com.codahale.metrics.Timer... timers)  
    • Method Summary

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

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

      • MultiTimerContext

        public MultiTimerContext​(com.codahale.metrics.Timer... timers)
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable