public interface TCPMetrics<S> extends NetworkMetrics<S>
createMetricsmethod that created and returned this metrics object.
|Modifier and Type||Method and Description|
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.
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 client
remoteName- the remote name of the client
Copyright © 2019 Eclipse. All rights reserved.