bb.io
Class StreamUtil.Drainer
java.lang.Object
bb.io.StreamUtil.Drainer
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- StreamUtil
private static class StreamUtil.Drainer
- extends Object
- implements Runnable
Solely used by the internal worker thread of the above drain method.
Method Summary |
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instanceIdNext
private static final AtomicLong instanceIdNext
instanceId
private final long instanceId
in
private final InputStream in
lengthMax
private final int lengthMax
bytes
private volatile byte[] bytes
throwable
private volatile Throwable throwable
StreamUtil.Drainer
private StreamUtil.Drainer(InputStream in,
int lengthMax)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
run
public void run()
- Specified by:
run
in interface Runnable