public interface HttpServerMetrics<R,W,S> extends TCPMetrics<S>
VertxMetrics
createMetrics
method that created and returned
this metrics object.
DISABLE_METRICS_PROPERTY_NAME, METRICS_ENABLED
Modifier and Type | Method and Description |
---|---|
default W |
connected(S socketMetric,
R requestMetric,
ServerWebSocket serverWebSocket)
Called when a server web socket connects.
|
default void |
disconnected(W serverWebSocketMetric)
Called when the server web socket has disconnected.
|
default R |
requestBegin(S socketMetric,
HttpServerRequest request)
Called when an http server request begins.
|
default void |
requestReset(R requestMetric)
Called when the http server request couldn't complete successfully, for instance the connection
was closed before the response was sent.
|
default void |
responseBegin(R requestMetric,
HttpServerResponse response)
Called when an http server response begins.
|
default void |
responseEnd(R requestMetric,
HttpServerResponse response)
Called when an http server response has ended.
|
default R |
responsePushed(S socketMetric,
HttpMethod method,
String uri,
HttpServerResponse response)
Called when an http server response is pushed.
|
connected, disconnected
bytesRead, bytesWritten, exceptionOccurred
default R requestBegin(S socketMetric, HttpServerRequest request)
responseEnd(R, io.vertx.core.http.HttpServerResponse)
when the response has ended
or requestReset(R)
if the request/response has failed before.socketMetric
- the socket metricrequest
- the http server reuqestdefault void requestReset(R requestMetric)
requestMetric
- the request metricdefault void responseBegin(R requestMetric, HttpServerResponse response)
requestMetric
- the request metricresponse
- the http server requestdefault R responsePushed(S socketMetric, HttpMethod method, String uri, HttpServerResponse response)
socketMetric
- the socket metricmethod
- the pushed response methoduri
- the pushed response uriresponse
- the http server response @return the request metricdefault void responseEnd(R requestMetric, HttpServerResponse response)
requestMetric
- the request metricresponse
- the http server requestdefault W connected(S socketMetric, R requestMetric, ServerWebSocket serverWebSocket)
socketMetric
- the socket metricrequestMetric
- the request metricserverWebSocket
- the server web socketdefault void disconnected(W serverWebSocketMetric)
serverWebSocketMetric
- the server web socket metricCopyright © 2023 Eclipse. All rights reserved.