Interface NetworkMetrics<S>

    • Method Detail

      • bytesRead

        default void bytesRead​(S socketMetric,
                               SocketAddress remoteAddress,
                               long numberOfBytes)
        Called when bytes have been read
        Parameters:
        socketMetric - the socket metric, null for UDP
        remoteAddress - the remote address which this socket received bytes from
        numberOfBytes - the number of bytes read
      • bytesWritten

        default void bytesWritten​(S socketMetric,
                                  SocketAddress remoteAddress,
                                  long numberOfBytes)
        Called when bytes have been written
        Parameters:
        socketMetric - the socket metric, null for UDP
        remoteAddress - the remote address which bytes are being written to
        numberOfBytes - the number of bytes written
      • exceptionOccurred

        default void exceptionOccurred​(S socketMetric,
                                       SocketAddress remoteAddress,
                                       Throwable t)
        Called when exceptions occur for a specific connection.
        Parameters:
        socketMetric - the socket metric, null for UDP
        remoteAddress - the remote address of the connection or null if it's datagram/udp
        t - the exception that occurred