public class BufferingFlux
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static reactor.core.publisher.Flux<java.lang.String> |
create(reactor.core.publisher.Flux<java.lang.String> source,
java.lang.String delimiter,
int maxByteArraySize,
long maxMillisecondsBetweenEmits)
Creates a Flux that implements Nagle's algorithm to buffer messages -- joined by a delimiter string -- to up a
maximum number of bytes, or a maximum duration of time.
|
public static reactor.core.publisher.Flux<java.lang.String> create(reactor.core.publisher.Flux<java.lang.String> source,
java.lang.String delimiter,
int maxByteArraySize,
long maxMillisecondsBetweenEmits)
source - The input flux.delimiter - The delimiter to use to join messagesmaxByteArraySize - The buffered payload will contain no more than this number of bytesmaxMillisecondsBetweenEmits - Buffered payloads will be emitted no less frequently than this.