Interface KeyPerformanceIndicatorSupport.Context

All Known Subinterfaces:
KeyPerformanceIndicatorSupport.DeferrableRequestContext
Enclosing interface:
KeyPerformanceIndicatorSupport

public static interface KeyPerformanceIndicatorSupport.Context
Per-request key performance indicator context, with behavior common to immediately-processed requests and deferrable ones.
  • Field Details

  • Method Details

    • create

      Provides a Context for use with an immediate (non-deferrable) request.
      Returns:
      the new Context
    • requestHandlingStarted

      default void requestHandlingStarted(KeyPerformanceIndicatorSupport.Metrics keyPerformanceIndicatorMetrics)
      Records that handling of the request is about to begin.
      Parameters:
      keyPerformanceIndicatorMetrics - KPI metrics to update in this context
    • requestProcessingCompleted

      default void requestProcessingCompleted(boolean isSuccessful)
      Records that a request has completed its processing.
      Parameters:
      isSuccessful - whether the request completed successfully
    • requestHandlingCompleted

      default void requestHandlingCompleted(boolean isSuccessful)
      Records that handling of a request has completed.
      Parameters:
      isSuccessful - whether the request completed successfully