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, disconnected
bytesRead, bytesWritten, exceptionOccurred
R requestBegin(S socketMetric, SocketAddress localAddress, SocketAddress remoteAddress, HttpClientRequest request)
socketMetric
- the socket metriclocalAddress
- the local addressremoteAddress
- the remote addressrequest
- the HttpClientRequest
void responseEnd(R requestMetric, HttpClientResponse response)
requestMetric
- the request metricresponse
- the HttpClientResponse
W connected(S socketMetric, WebSocket webSocket)
socketMetric
- the socket metricwebSocket
- the server web socketvoid disconnected(W webSocketMetric)
webSocketMetric
- the web socket metricCopyright © 2016. All rights reserved.