Module io.helidon.webserver
Package io.helidon.webserver
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 Summary
Modifier and TypeFieldDescriptionstatic final KeyPerformanceIndicatorSupport.Context
No-op implementation ofContext
. -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Provides aContext
for use with an immediate (non-deferrable) request.default void
requestHandlingCompleted
(boolean isSuccessful) Records that handling of a request has completed.default void
requestHandlingStarted
(KeyPerformanceIndicatorSupport.Metrics keyPerformanceIndicatorMetrics) Records that handling of the request is about to begin.default void
requestProcessingCompleted
(boolean isSuccessful) Records that a request has completed its processing.
-
Field Details
-
NO_OP
No-op implementation ofContext
.
-
-
Method Details
-
create
Provides aContext
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
-