public final class Operators extends Object
| Modifier and Type | Method and Description |
|---|---|
static BiConsumer<Event,reactor.core.publisher.SynchronousSink<Event>> |
echoOnNullMap(Function<Event,Event> mapper)
Custom function to be used with
Flux.handle(BiConsumer) when a map function may return
null and this should be interpreted by echoing the incoming event rather than causing an error. |
static BiConsumer<Event,reactor.core.publisher.SynchronousSink<Event>> |
nullSafeMap(Function<Event,Event> mapper)
Custom function to be used with
Flux.handle(BiConsumer) when a map function may return
null and this should be interpreted as empty rather than causing an error. |
static <T> org.reactivestreams.Subscriber<T> |
requestUnbounded()
Return a singleton
Subscriber that does not check for double onSubscribe and purely request Long.MAX. |
public static BiConsumer<Event,reactor.core.publisher.SynchronousSink<Event>> nullSafeMap(Function<Event,Event> mapper)
Flux.handle(BiConsumer) when a map function may return
null and this should be interpreted as empty rather than causing an error. If null is return by the function then the
EventContext is also completed.mapper - map functionBiConsumer to be used with Flux.handle(BiConsumer).public static BiConsumer<Event,reactor.core.publisher.SynchronousSink<Event>> echoOnNullMap(Function<Event,Event> mapper)
Flux.handle(BiConsumer) when a map function may return
null and this should be interpreted by echoing the incoming event rather than causing an error.mapper - map functionBiConsumer to be used with Flux.handle(BiConsumer).public static <T> org.reactivestreams.Subscriber<T> requestUnbounded()
Subscriber that does not check for double onSubscribe and purely request Long.MAX. Unlike using
Flux.subscribe() directly this will not throw an exception if an error occurs.Subscriber whose sole purpose is to request Long.MAXCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.