Interface BitRateProvider

All Known Implementing Classes:
BandwidthLimitingTunnelHandlerDownstreamThread, BandwidthLimitingTunnelHandlerThread, BandwidthLimitingTunnelHandlerUpstreamThread

public interface BitRateProvider
A BitRateProvider specifies precisely how many bits per second of bandwidth a task should use.
Author:
AO Industries, Inc.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final long
    The recommended minimum bit rate.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the bit rate in bits per second, null indicates unlimited bandwidth.
    int
    Gets the block size in bytes.
  • Field Details

    • MINIMUM_BIT_RATE

      static final long MINIMUM_BIT_RATE
      The recommended minimum bit rate.
      See Also:
  • Method Details

    • getBitRate

      Long getBitRate() throws IOException
      Gets the bit rate in bits per second, null indicates unlimited bandwidth.
      Throws:
      IOException
    • getBlockSize

      int getBlockSize()
      Gets the block size in bytes.