Create a buffered channel backed up by a fixed size buffer.
Create a buffered channel backed up by a fixed size buffer.
The buffer is read into a single segment whose maximum size is fixed by the maxSegmentSize parameter.
The maximum number of messages buffered by the channel is equal to ((size - 1) + MaxInputSegmentSize), where - size is the maximum size of the segment that can be read from the channel. - MaxInputSegmentSize is the maximum size of the segments emitted by producers (in principle, bounded by Platform.segmentSizeThreshold).
the maximum segment size that can be read from input side of the channel.
the input and output interfaces of the buffered channel.
Factory for cooperative buffered channels.
A user-level thread writing to this channel will become suspended if the size of the segment it writes to the channel plus the sum of the sizes of the segments already buffered by the channel exceed the size specified at creation time. In case the reader is slower than the producer, multiple segments buffered by the channel will be aggregated together into a single segment, which will be delivered the next time a user-level thread reads on the channel.