public interface NetworkMetrics<S> extends Metrics
Modifier and Type | Method and Description |
---|---|
void |
bytesRead(S socketMetric,
SocketAddress remoteAddress,
long numberOfBytes)
Called when bytes have been read
|
void |
bytesWritten(S socketMetric,
SocketAddress remoteAddress,
long numberOfBytes)
Called when bytes have been written
|
void |
exceptionOccurred(S socketMetric,
SocketAddress remoteAddress,
Throwable t)
Called when exceptions occur for a specific connection.
|
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 readvoid 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 writtenvoid 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 © 2015. All Rights Reserved.