public final class OperatorUtils extends Object
This is a slightly altered version of R2DBC SQL Server's implementation: https://github.com/r2dbc/r2dbc-mssql
| Modifier and Type | Method and Description |
|---|---|
static Flux<io.netty.buffer.ByteBuf> |
cumulateEnvelope(Flux<? extends io.netty.buffer.ByteBuf> source,
io.netty.buffer.ByteBufAllocator allocator,
int envelopeIdStart) |
static <T> Flux<T> |
discardOnCancel(Flux<? extends T> source)
Replay signals from
the source until cancellation. |
public static <T> Flux<T> discardOnCancel(Flux<? extends T> source)
the source until cancellation. Drains the source for data signals if
the subscriber cancels the subscription.
Draining data is required to complete a particular request/response window and clear the protocol state as client code expects to start a request/response conversation without leaving previous frames on the stack.
T - The type of values in both source and output sequences.source - the source to decorate.Flux.IllegalArgumentException - if source is null.Copyright © 2018–2023 asyncer.io. All rights reserved.