public interface TCPMetrics<S> extends NetworkMetrics<S>
VertxMetrics
createMetrics
method that created and returned
this metrics object.
DISABLE_METRICS_PROPERTY_NAME, METRICS_ENABLED
Modifier and Type | Method and Description |
---|---|
S |
connected(SocketAddress remoteAddress,
String remoteName)
Called when a client has connected, which is applicable for TCP connections.
The remote name of the client is a best effort to provide the name of the remote host, i.e if the name
is specified at creation time, this name will be used otherwise it will be the remote address.
|
void |
disconnected(S socketMetric,
SocketAddress remoteAddress)
Called when a client has disconnected, which is applicable for TCP connections.
|
bytesRead, bytesWritten, exceptionOccurred
S connected(SocketAddress remoteAddress, String remoteName)
remoteAddress
- the remote address of the clientremoteName
- the remote name of the clientvoid disconnected(S socketMetric, SocketAddress remoteAddress)
socketMetric
- the socket metricremoteAddress
- the remote address of the clientCopyright © 2017. All rights reserved.