public interface HttpClientMetrics<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,
WebSocket webSocket)
Called when a web socket connects.
|
void |
disconnected(W webSocketMetric)
Called when the web socket has disconnected.
|
R |
requestBegin(S socketMetric,
SocketAddress localAddress,
SocketAddress remoteAddress,
HttpClientRequest request)
Called when an http client request begins
|
void |
responseEnd(R requestMetric,
HttpClientResponse response)
Called when an http client response has ended
|
connected, disconnectedbytesRead, bytesWritten, exceptionOccurredR requestBegin(S socketMetric, SocketAddress localAddress, SocketAddress remoteAddress, HttpClientRequest request)
socketMetric - the socket metriclocalAddress - the local addressremoteAddress - the remote addressrequest - the HttpClientRequestvoid responseEnd(R requestMetric, HttpClientResponse response)
requestMetric - the request metricresponse - the HttpClientResponseW connected(S socketMetric, WebSocket webSocket)
socketMetric - the socket metricwebSocket - the server web socketvoid disconnected(W webSocketMetric)
webSocketMetric - the web socket metricCopyright © 2015. All rights reserved.