You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by John Crowley <jd...@gmail.com> on 2020/05/29 19:59:47 UTC
[io] BroadcastInputStream
Have posted this to https://github.com/jcrowley66/BroadcastInputStream <https://github.com/jcrowley66/BroadcastInputStream> as a potential contribution if considered generally useful.
A BroadcastInputStream will broadcast a copy of the base InputStream to 1-N BroadcastConsumers - which are usually running in separate threads.
A set of internal buffers are shared in order to minimize the amount of memory required and also to reduce synchronization events. Additional details are provided in the comments of the BroadcastInputStream.java file.
Glad to answer any questions.
Best,
John Crowley
Charlotte, NC
203-856-2396
Re: [io] BroadcastInputStream
Posted by Gary Gregory <ga...@gmail.com>.
Hi John,
Please provide your proposal a PR on GitHub [1] so it can be better
reviewed and built by Travis-CI.
Gary
[1] https://github.com/apache/commons-io
On Sat, May 30, 2020 at 6:30 AM John Crowley <jd...@gmail.com> wrote:
> Have posted this to https://github.com/jcrowley66/BroadcastInputStream <
> https://github.com/jcrowley66/BroadcastInputStream> as a potential
> contribution if considered generally useful.
>
> A BroadcastInputStream will broadcast a copy of the base InputStream to
> 1-N BroadcastConsumers - which are usually running in separate threads.
>
> A set of internal buffers are shared in order to minimize the amount of
> memory required and also to reduce synchronization events. Additional
> details are provided in the comments of the BroadcastInputStream.java file.
>
> Glad to answer any questions.
>
> Best,
>
> John Crowley
> Charlotte, NC
> 203-856-2396
>
>
>
>
>