Class ThreadedStreamConsumer

java.lang.Object
org.apache.maven.plugin.surefire.booterclient.output.ThreadedStreamConsumer
All Implemented Interfaces:
Closeable, AutoCloseable, EventHandler<Event>

public final class ThreadedStreamConsumer extends Object implements EventHandler<Event>, Closeable
Knows how to reconstruct *all* the state transmitted over Channel by the forked process.
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