Module io.helidon.webserver
Package io.helidon.webserver
Interface KeyPerformanceIndicatorSupport.Context
-
- All Known Subinterfaces:
KeyPerformanceIndicatorSupport.DeferrableRequestContext
- Enclosing interface:
- KeyPerformanceIndicatorSupport
public static interface KeyPerformanceIndicatorSupport.ContextPer-request key performance indicator context, with behavior common to immediately-processed requests and deferrable ones.
-
-
Field Summary
Fields Modifier and Type Field Description static KeyPerformanceIndicatorSupport.ContextNO_OPNo-op implementation ofContext.
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static KeyPerformanceIndicatorSupport.Contextcreate()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 Detail
-
NO_OP
static final KeyPerformanceIndicatorSupport.Context NO_OP
No-op implementation ofContext.
-
-
Method Detail
-
create
static KeyPerformanceIndicatorSupport.Context 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
-
-