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 |
---|---|
default 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.
|
default void |
disconnected(S socketMetric,
SocketAddress remoteAddress)
Called when a client has disconnected, which is applicable for TCP connections.
|
bytesRead, bytesWritten, exceptionOccurred
default S connected(SocketAddress remoteAddress, String remoteName)
remoteAddress
- the remote address of the clientremoteName
- the remote name of the clientdefault void disconnected(S socketMetric, SocketAddress remoteAddress)
socketMetric
- the socket metricremoteAddress
- the remote address of the clientCopyright © 2023 Eclipse. All rights reserved.