Interface FrameLossCounter


public interface FrameLossCounter
  • Field Summary

    Fields
    Modifier and Type Field Description
    static int EXPECTED_PACKET_COUNT_PER_MIN
    Packet count expected to be sent over a minute.
  • Method Summary

    Modifier and Type Method Description
    boolean isDataUsable()
    Returns whether or not enough data has been gathered for use.
    ByteRingBuffer lastMinuteLoss()
    Returns the amount of frames lost per second over the past minute.
    ByteRingBuffer lastMinuteSuccess()
    Returns the amount of frames sent per second over the past minute.
  • Field Details

  • Method Details

    • lastMinuteLoss

      Returns the amount of frames lost per second over the past minute. Each entry corresponds to one second. Ideally, all values should be 0.

      This buffer should not be modified.

      This data is only valid if isDataUsable() returns true.
      Returns:
      The amount of frames lost over the past minute.
    • lastMinuteSuccess

      Returns the amount of frames sent per second over the past minute. Each entry corresponds to one second. Ideally, all values should be 30.

      This buffer should not be modified.

      This data is only valid if isDataUsable() returns true.
      Returns:
      The amount of frames sent over the past minute.
    • isDataUsable

      Returns whether or not enough data has been gathered for use.
      Returns:
      true if there's enough data stored.