public class MethodMetrics extends Object
Modifier and Type | Class and Description |
---|---|
class |
MethodMetrics.Context
Inner class instances handle contexts for the same instance of MethodMetrics.
|
Constructor and Description |
---|
MethodMetrics(com.codahale.metrics.Meter meter,
com.codahale.metrics.Timer successTimer,
com.codahale.metrics.Timer exceptionTimer) |
Modifier and Type | Method and Description |
---|---|
long |
getCount() |
long |
getErrorCount() |
long |
getSuccessCount() |
MethodMetricsContext |
newContext()
Create and return new context since an execution of this method has started
|
public MethodMetrics(@NonNull com.codahale.metrics.Meter meter, @NonNull com.codahale.metrics.Timer successTimer, @NonNull com.codahale.metrics.Timer exceptionTimer)
public MethodMetricsContext newContext()
public long getCount()
public long getSuccessCount()
public long getErrorCount()
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.