Module io.helidon.webserver
Package io.helidon.webserver
Interface KeyPerformanceIndicatorSupport.Metrics
-
- Enclosing interface:
- KeyPerformanceIndicatorSupport
public static interface KeyPerformanceIndicatorSupport.Metrics
Key performance indicator metrics behavior.
-
-
Field Summary
Fields Modifier and Type Field Description static KeyPerformanceIndicatorSupport.Metrics
NO_OP
No-op implementation ofMetrics
.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
onRequestCompleted(boolean isSuccessful, long processingTimeMs)
Invoked when processing on a request has finished.default void
onRequestReceived()
Invoked when a request has been received.default void
onRequestStarted()
Invoked when processing on a request has been started.
-
-
-
Field Detail
-
NO_OP
static final KeyPerformanceIndicatorSupport.Metrics NO_OP
No-op implementation ofMetrics
.
-
-
Method Detail
-
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 succeededprocessingTimeMs
- duration of the request processing in milliseconds
-
-