Class MeteringAgent.Context

  • Enclosing class:
    MeteringAgent

    public class MeteringAgent.Context
    extends Object
    Timer.Context with a specific operation.
    • Constructor Detail

      • Context

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

      • stop

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