Package org.apache.nifi.stream.io
Class LeakyBucketStreamThrottler.Drain
java.lang.Object
org.apache.nifi.stream.io.LeakyBucketStreamThrottler.Drain
- All Implemented Interfaces:
Runnable
- Enclosing class:
LeakyBucketStreamThrottler
This class is responsible for draining water from the leaky bucket. I.e., it actually moves the data
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate int
fillBuffer
(InputStream in, long maxBytes) void
run()
-
Field Details
-
buffer
private final byte[] buffer
-
-
Constructor Details
-
Drain
public Drain()
-
-
Method Details
-
run
public void run() -
fillBuffer
- Throws:
IOException
-