@groovy.transform.CompileStatic class PairWriter extends RegulatingActor<java.util.Map<java.lang.String, java.lang.Object>>
A simple class that whose purpose is purely to paralleise writing output to a Writer.
Each message contains two attributes:
A pending count is decremented with each batch of reads written. This count needs to be incremented by the caller for it to be accurate. If this is done, the pending count will reflect how many reads are queued, waiting to be written, and thus give an estimate of how much memory is currently being consumed by buffered reads.
Modifiers | Name | Description |
---|---|---|
java.util.concurrent.atomic.AtomicInteger |
pending |
Constructor and description |
---|
PairWriter
(java.io.Writer writer, int queueSize) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
process(java.util.Map<java.lang.String, java.lang.Object> msg) |
Groovy Documentation