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 |
responseEnd(R requestMetric,
HttpServerResponse response)
Called when an http server response has ended.
|
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)
socketMetric - the socket metricrequest - the HttpServerRequestvoid responseEnd(R requestMetric, HttpServerResponse response)
requestMetric - the request metricresponse - the HttpServerResponseW 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 © 2015. All rights reserved.