Package org.apache.cxf.metrics
Interface MetricsContext
-
- All Known Implementing Classes:
CodahaleMetricsContext,MicrometerClientMetricsContext,MicrometerServerMetricsContext
public interface MetricsContextClass to hold all the various metric pieces for a given context (Endpoint, Customer, Operation, etc...)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidstart(Exchange m)Will be called at the start of invoke (or when added to a started MessageMetrics).voidstop(long timeInNS, long inSize, long outSize, Exchange exchange)Called when the invocation is complete.
-
-
-
Method Detail
-
start
void start(Exchange m)
Will be called at the start of invoke (or when added to a started MessageMetrics). This is when the metrics should increment "inFlight" counts and other stats. There is no need to record a "start time" as the invoke time will be passed into the stop method.
-
stop
void stop(long timeInNS, long inSize, long outSize, Exchange exchange)Called when the invocation is complete.- Parameters:
timeInNS-inSize-outSize-exchange-
-
-