Is there a (Netty or JDK8 or ThirdParty) stream (or whatever its name should be) that can be both read and write and it is thread safe (only read or only write at the same time)? It should have both read(ByteBuf) and write(ByteBuf) or both read(byte[])) and write(byte[]))?
I have scenario where multiple components should process a stream. For performance reasons those components run in their own threads and read some amount of bytes to be processed.