Nice. I thinking if the producer is constantly faster than the consumer, will the…
Weili Yang
1

With a LinkedBlockingQueue the producing Stream will be blocked once the queue reaches capacity. So it winds up paused until the consumer removes an element.