Package reactor.core.publisher
@NullMarked
package reactor.core.publisher
Provide main Reactive APIs in
Flux and Mono,
as well as various helper classes, interfaces used in the composition API, variants of Flux and operator-building
utilities.
Flux
A typed N-elements or zero sequencePublisher with core reactive extensions.
Mono
A typed one-element at most sequencePublisher with core reactive extensions.- Author:
- Stephane Maldini
-
ClassDescriptionA simple base class for a
Subscriberimplementation that lets the user perform aBaseSubscriber.request(long)andBaseSubscriber.cancel()on it directly.Strategies to deal with overflow of a buffer duringbackpressure buffering.The abstract base class for connectable publishers that let subscribers pile up before they connect to their data source.Deprecated.Deprecated.To be removed in 3.5.Flux<T>A Reactive StreamsPublisherwith rx operators that emits 0 to N elements, and then completes (successfully or with an error).FluxOperator<I,O> FluxProcessor<IN,OUT> Deprecated.Processors will be removed in 3.5.FluxSink<T>Wrapper API around a downstream Subscriber for emitting any number of next signals followed by zero or one onError/onComplete.Enumeration for backpressure handling.GroupedFlux<K,V> Represents a sequence of events which has an associated key.Mono<T>A Reactive StreamsPublisherwith basic rx operators that emits at most one item via theonNextsignal then terminates with anonCompletesignal (successful Mono, with or without value), or only emits a singleonErrorsignal (failed Mono).MonoOperator<I,O> Deprecated.Processors will be removed in 3.5.MonoSink<T>Wrapper API around an actual downstream Subscriber for emitting nothing, a single value or an error (mutually exclusive).A helper to support "Operator" writing, handle noop subscriptions, validate request size and to cap concurrent additive operations to Long.MAX_VALUE, which is generic toSubscription.request(long)handling.Base class for Subscribers that will receive their Subscriptions at any time, yet they might also need to be cancelled or requested at any time.A Subscriber/Subscription barrier that holds a single value at most and properly gates asynchronous behaviors resulting from concurrent request or cancel and onXXX signals.ParallelFlux<T>A ParallelFlux publishes to an array of Subscribers, in parallel 'rails' (or'groups').Deprecated.To be removed in 3.5, prefer clear cut usage ofSinksthrough variations underSinks.many().replay().Signal<T>A domain representation of a Reactive Stream signal.Reactive Stream signal typesAn exception representing afailedSinks.EmitResult.A handler supporting the emit API (eg.Represents the immediate result of an emit attempt (eg.Sinks.Empty<T>A base interface for standaloneSinkswith complete-or-fail semantics.Sinks.Many<T>ProvidesSinks.Manyspecs for sinks which can emit multiple elementsASinks.Manywhich additionally allows being subscribed to an upstreamPublisher, which is an advanced pattern requiring external synchronization.Provides multicast with history/replay capacity : 1 sink, NSubscriberProvides multicast : 1 sink, NSubscriberSinks.One<T>Provides unicast: 1 sink, 1SubscriberInterface to produce synchronously "one signal" to an underlyingSubscriber.Timed<T>Deprecated.to be removed in 3.5, prefer clear cut usage ofSinksthrough variations underSinks.many().unicast().
Sinks.