Package com.aoindustries.io
Interface BitRateProvider
-
- All Known Implementing Classes:
BandwidthLimitingTunnelHandlerDownstreamThread,BandwidthLimitingTunnelHandlerThread,BandwidthLimitingTunnelHandlerUpstreamThread
public interface BitRateProviderABitRateProviderspecifies 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 longMINIMUM_BIT_RATEThe recommended minimum bit rate.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LonggetBitRate()Gets the bit rate in bits per second,nullindicates unlimited bandwidth.intgetBlockSize()Gets the block size in bytes.
-
-
-
Field Detail
-
MINIMUM_BIT_RATE
static final long MINIMUM_BIT_RATE
The recommended minimum bit rate.- See Also:
- Constant Field Values
-
-
Method Detail
-
getBitRate
Long getBitRate() throws IOException
Gets the bit rate in bits per second,nullindicates unlimited bandwidth.- Throws:
IOException
-
getBlockSize
int getBlockSize()
Gets the block size in bytes.
-
-