Package org.onosproject.utils
Class MeteringAgent.Context
- java.lang.Object
-
- org.onosproject.utils.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.
-