Class ParallelZipWriter.Sink
java.lang.Object
com.ljarocki.parallelzip.internal.ParallelZipWriter.Sink
- Enclosing class:
- ParallelZipWriter
A running compress-and-write pipeline. Entries are handed in via
add(com.ljarocki.parallelzip.internal.ParallelZipWriter.Entry) (which
blocks when the bounded in-flight window is full, providing backpressure), a worker
pool compresses them, and a single writer thread streams them out in submission order.
This lets a producer feed entries incrementally without materializing them all at once.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Sink
-
-
Method Details
-
add
- Throws:
InterruptedException
-
finish
- Throws:
IOExceptionInterruptedException
-