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 nano seconds 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:
handleEvent
in interfaceEventHandler<Event>
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-