public interface HttpServerMetrics<R,W,S> extends TCPMetrics<S>
VertxMetrics createMetrics method that created and returned
this metrics object.
| Modifier and Type | Method and Description |
|---|---|
W |
connected(S socketMetric,
ServerWebSocket serverWebSocket)
Called when a server web socket connects.
|
void |
disconnected(W serverWebSocketMetric)
Called when the server web socket has disconnected.
|
R |
requestBegin(S socketMetric,
HttpServerRequest request)
Called when an http server request begins.
|
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.
|
void |
responseEnd(R requestMetric,
HttpServerResponse response)
Called when an http server response has ended.
|
R |
responsePushed(S socketMetric,
HttpMethod method,
String uri,
HttpServerResponse response)
Called when an http server response is pushed.
|
W |
upgrade(R requestMetric,
ServerWebSocket serverWebSocket)
Called when an http server request is upgrade to a websocket.
|
connected, disconnectedbytesRead, bytesWritten, exceptionOccurredR 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 reuqestvoid requestReset(R requestMetric)
requestMetric - the request metricR 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 metricvoid responseEnd(R requestMetric, HttpServerResponse response)
requestMetric - the request metricresponse - the http server requestW upgrade(R requestMetric, ServerWebSocket serverWebSocket)
requestMetric - the request metricserverWebSocket - the server web socketW connected(S socketMetric, ServerWebSocket serverWebSocket)
socketMetric - the socket metricserverWebSocket - the server web socketvoid disconnected(W serverWebSocketMetric)
serverWebSocketMetric - the server web socket metricCopyright © 2016. All rights reserved.