Class StreamingNettyByteBody.SharedBuffer

java.lang.Object
io.micronaut.http.body.stream.BaseSharedBuffer<ByteBufConsumer,io.netty.buffer.ByteBuf>
io.micronaut.http.netty.body.StreamingNettyByteBody.SharedBuffer
All Implemented Interfaces:
BufferConsumer, ByteBufConsumer
Enclosing class:
StreamingNettyByteBody

public static final class StreamingNettyByteBody.SharedBuffer extends BaseSharedBuffer<ByteBufConsumer,io.netty.buffer.ByteBuf> implements ByteBufConsumer
This class buffers input data and distributes it to multiple StreamingNettyByteBody instances.

Thread safety: The ByteBufConsumer methods must only be called from one thread, the eventLoop thread. The other methods (subscribe, reserve) can be called from any thread.