The thread model for the http server metrics depends on the actual context thats started the server.
io.vertx.core.spi.metrics.VertxMetrics createMetrics method that created and returned
this metrics object.
| Modifier and Type | Method and Description |
|---|---|
| public default W | Returns: the server web socket metricthe socket metric socketMetric, R the request metric requestMetric, ServerWebSocket the server web socket serverWebSocket)Called when a server web socket connects. |
| public default void | disconnected(W
the server web socket metric serverWebSocketMetric)Called when the server web socket has disconnected. |
| public default R | Returns: the request metricthe socket metric socketMetric, HttpRequest the http server reuqest request)Called when an http server request begins. |
| public default void | requestEnd(R
the request metric requestMetric, HttpRequest the same request, long HttpRequest provided in the initial response callbackthe total number of bytes read bytesRead)Called when an http server request has ended. |
| public default void | requestReset(R
the request metric requestMetric)Called when the http server request couldn't complete successfully, for instance the connection was closed before the response was sent. |
| public default void | requestRouted(R
the request metric requestMetric, String the route the request has been routed to route)Called when a routing layer indicates a request has been routed. |
| public default void | responseBegin(R
the request metric requestMetric, HttpResponse the http server request response)Called when an http server response begins. |
| public default void | responseEnd(R
the request metric requestMetric, HttpResponse the same response, long HttpResponse provided in the initial response callbackthe total number of bytes written bytesWritten)Called when an http server response has ended. |
| public default R | responsePushed(S
the socket metric socketMetric, HttpMethod the pushed response method method, String the pushed response uri uri, HttpResponse the http server response @return the request metric response)Called when an http server response is pushed. |
| connected | back to summary |
|---|---|
| public default W connected(S socketMetric, R requestMetric, ServerWebSocket serverWebSocket) Called when a server web socket connects.
| |
| disconnected | back to summary |
|---|---|
| public default void disconnected(W serverWebSocketMetric) Called when the server web socket has disconnected.
| |
| requestBegin | back to summary |
|---|---|
| public default R requestBegin(S socketMetric, HttpRequest request) Called when an http server request begins. Vert.x will invoke
| |
| requestEnd | back to summary |
|---|---|
| public default void requestEnd(R requestMetric, HttpRequest request, long bytesRead) Called when an http server request has ended.
| |
| requestReset | back to summary |
|---|---|
| public 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.
| |
| requestRouted | back to summary |
|---|---|
| public default void requestRouted(R requestMetric, String route) Called when a routing layer indicates a request has been routed.
| |
| responseBegin | back to summary |
|---|---|
| public default void responseBegin(R requestMetric, HttpResponse response) Called when an http server response begins.
| |
| responseEnd | back to summary |
|---|---|
| public default void responseEnd(R requestMetric, HttpResponse response, long bytesWritten) Called when an http server response has ended.
| |
| responsePushed | back to summary |
|---|---|
| public default R responsePushed(S socketMetric, HttpMethod method, String uri, HttpResponse response) Called when an http server response is pushed.
| |