Interface KeyPerformanceIndicatorSupport.Metrics

Enclosing interface:
KeyPerformanceIndicatorSupport

public static interface KeyPerformanceIndicatorSupport.Metrics
Key performance indicator metrics behavior.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    No-op implementation of Metrics.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Clear (particularly for between tests in the same JVM).
    default void
    onRequestCompleted(boolean isSuccessful, long processingTimeMs)
    Invoked when processing on a request has finished.
    default void
    Invoked when a request has been received.
    default void
    Invoked when processing on a request has been started.
  • Field Details

  • Method Details

    • onRequestReceived

      default void onRequestReceived()
      Invoked when a request has been received.
    • onRequestStarted

      default void onRequestStarted()
      Invoked when processing on a request has been started.
    • onRequestCompleted

      default void onRequestCompleted(boolean isSuccessful, long processingTimeMs)
      Invoked when processing on a request has finished.
      Parameters:
      isSuccessful - indicates if the request processing succeeded
      processingTimeMs - duration of the request processing in milliseconds
    • close

      default void close()
      Clear (particularly for between tests in the same JVM).