Interface MetricsContext

All Known Implementing Classes:
CodahaleMetricsContext, MicrometerClientMetricsContext, MicrometerServerMetricsContext

public interface MetricsContext
Class to hold all the various metric pieces for a given context (Endpoint, Customer, Operation, etc...)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    start(org.apache.cxf.message.Exchange m)
    Will be called at the start of invoke (or when added to a started MessageMetrics).
    void
    stop(long timeInNS, long inSize, long outSize, org.apache.cxf.message.Exchange exchange)
    Called when the invocation is complete.
  • Method Details

    • start

      void start(org.apache.cxf.message.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, org.apache.cxf.message.Exchange exchange)
      Called when the invocation is complete.
      Parameters:
      timeInNS -
      inSize -
      outSize -
      exchange -