public interface StreamThrottler extends Closeable
Modifier and Type | Method and Description |
---|---|
long |
copy(InputStream in,
OutputStream out) |
long |
copy(InputStream in,
OutputStream out,
long maxBytes) |
InputStream |
newThrottledInputStream(InputStream toWrap) |
OutputStream |
newThrottledOutputStream(OutputStream toWrap) |
long copy(InputStream in, OutputStream out) throws IOException
IOException
long copy(InputStream in, OutputStream out, long maxBytes) throws IOException
IOException
InputStream newThrottledInputStream(InputStream toWrap)
OutputStream newThrottledOutputStream(OutputStream toWrap)
Copyright © 2019 Apache NiFi Project. All rights reserved.