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
FieldsModifier and TypeFieldDescriptionstatic final KeyPerformanceIndicatorSupport.ContextNo-op implementation ofContext. - 
Method Summary
Modifier and TypeMethodDescriptioncreate()Provides aContextfor use with an immediate (non-deferrable) request.default voidrequestHandlingCompleted(boolean isSuccessful) Records that handling of a request has completed.default voidrequestHandlingStarted(KeyPerformanceIndicatorSupport.Metrics keyPerformanceIndicatorMetrics) Records that handling of the request is about to begin.default voidrequestProcessingCompleted(boolean isSuccessful) Records that a request has completed its processing. 
- 
Field Details
- 
NO_OP
No-op implementation ofContext. 
 - 
 - 
Method Details
- 
create
Provides aContextfor 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
 
 -