Class ThreadedStreamConsumer
java.lang.Object
org.apache.maven.plugin.surefire.booterclient.output.ThreadedStreamConsumer
- All Implemented Interfaces:
Closeable,AutoCloseable,EventHandler<Event>
Knows how to reconstruct *all* the state transmitted over Channel by the forked process.
After applying the performance improvements with
After applying the performance improvements with
ThreadedStreamConsumer.QueueSynchronizer the throughput becomes
6.33 mega messages per second
(158 nanoseconds per message, 5 million messages within 0.79 seconds - see the test ThreadedStreamConsumerTest)
on CPU i5 Dual Core 2.6 GHz and Oracle JDK 11.- Author:
- Kristian Rosenvold
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ThreadedStreamConsumer
-
-
Method Details
-
handleEvent
- Specified by:
handleEventin interfaceEventHandler<Event>
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-