Class ThrottledOutputStream

java.lang.Object
java.io.OutputStream
ecmwf.common.technical.ThrottledOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class ThrottledOutputStream extends OutputStream
The Class ThrottledOutputStream.
  • Constructor Details

    • ThrottledOutputStream

      public ThrottledOutputStream(OutputStream outputStream)
      Instantiates a new throttled output stream.
      Parameters:
      outputStream - the output stream
    • ThrottledOutputStream

      public ThrottledOutputStream(OutputStream outputStream, long maxBytesPerSecond)
      Instantiates a new throttled output stream.
      Parameters:
      outputStream - the output stream
      maxBytesPerSecond - the max bytes per second
  • Method Details