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
FieldsModifier and TypeFieldDescriptionstatic final KeyPerformanceIndicatorSupport.MetricsNo-op implementation ofMetrics. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()Clear (particularly for between tests in the same JVM).default voidonRequestCompleted(boolean isSuccessful, long processingTimeMs) Invoked when processing on a request has finished.default voidInvoked when a request has been received.default voidInvoked 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).
-