Class MeteringAgent.Context

  • Enclosing class:
    MeteringAgent

    public class MeteringAgent.Context
    extends java.lang.Object
    Timer.Context with a specific operation.
    • Constructor Summary

      Constructors 
      Constructor Description
      Context​(com.codahale.metrics.Timer.Context context, java.lang.String operation)
      Constructs Context.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void stop​(java.lang.Throwable e)
      Stops timer given a specific context and updates all related metrics.
      • Methods inherited from class java.lang.Object

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

      • Context

        public Context​(com.codahale.metrics.Timer.Context context,
                       java.lang.String operation)
        Constructs Context.
        Parameters:
        context - context
        operation - operation name
    • Method Detail

      • stop

        public void stop​(java.lang.Throwable e)
        Stops timer given a specific context and updates all related metrics.
        Parameters:
        e - throwable