public interface NetworkMetrics<S> extends Metrics
DISABLE_METRICS_PROPERTY_NAME, METRICS_ENABLED| Modifier and Type | Method and Description |
|---|---|
default void |
bytesRead(S socketMetric,
SocketAddress remoteAddress,
long numberOfBytes)
Called when bytes have been read
|
default void |
bytesWritten(S socketMetric,
SocketAddress remoteAddress,
long numberOfBytes)
Called when bytes have been written
|
default void |
exceptionOccurred(S socketMetric,
SocketAddress remoteAddress,
Throwable t)
Called when exceptions occur for a specific connection.
|
default void bytesRead(S socketMetric, SocketAddress remoteAddress, long numberOfBytes)
socketMetric - the socket metric, null for UDPremoteAddress - the remote address which this socket received bytes fromnumberOfBytes - the number of bytes readdefault void bytesWritten(S socketMetric, SocketAddress remoteAddress, long numberOfBytes)
socketMetric - the socket metric, null for UDPremoteAddress - the remote address which bytes are being written tonumberOfBytes - the number of bytes writtendefault void exceptionOccurred(S socketMetric, SocketAddress remoteAddress, Throwable t)
socketMetric - the socket metric, null for UDPremoteAddress - the remote address of the connection or null if it's datagram/udpt - the exception that occurredCopyright © 2022 Eclipse. All rights reserved.