Class ThrottledOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.amazonaws.kinesisvideo.stream.throttling.ThrottledOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class ThrottledOutputStream extends OutputStream
Calls Throttler class each write operation so that Throttler measures and enforces the bandwidth it was configured to enforce
-
-
Constructor Summary
Constructors Constructor Description ThrottledOutputStream(OutputStream unthrottledOutputStream, Throttler throttler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(int b)-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write, write
-
-
-
-
Constructor Detail
-
ThrottledOutputStream
public ThrottledOutputStream(OutputStream unthrottledOutputStream, Throttler throttler)
-
-
Method Detail
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
-