protected static class AbstractMetricCollectingInterceptor.MetricSet extends Object
Constructor and Description |
---|
MetricSet(Counter requestCounter,
Counter responseCounter,
Function<Status.Code,Timer> timerFunction)
Creates a new metric set with the given meter instances.
|
Modifier and Type | Method and Description |
---|---|
Counter |
getRequestCounter() |
Counter |
getResponseCounter() |
Function<Status.Code,Timer> |
getTimerFunction() |
public MetricSet(Counter requestCounter, Counter responseCounter, Function<Status.Code,Timer> timerFunction)
requestCounter
- The request counter to use.responseCounter
- The response counter to use.timerFunction
- The timer function to use.public Counter getRequestCounter()
public Counter getResponseCounter()
public Function<Status.Code,Timer> getTimerFunction()