Interface MetricsContext

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void start​(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, 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 -