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
Modifier and TypeFieldDescriptionstatic final KeyPerformanceIndicatorSupport.Metrics
No-op implementation ofMetrics
. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
close()
Clear (particularly for between tests in the same JVM).default void
onRequestCompleted
(boolean isSuccessful, long processingTimeMs) Invoked when processing on a request has finished.default void
Invoked when a request has been received.default void
Invoked when processing on a request has been started.
-
Field Details
-
NO_OP
No-op implementation ofMetrics
.
-
-
Method Details
-
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
-
close
default void close()Clear (particularly for between tests in the same JVM).
-