-
Deprecated ClassesClassDescriptionTo be removed in 3.5. Prefer clear cut usage of
Sinksthrough variations ofSinks.many().multicast().onBackpressureBuffer(). If you really need the subscribe-to-upstream functionality of aProcessor, switch toSinks.ManyWithUpstreamwithSinks.unsafe()variants ofSinks.unsafe().manyWithUpstream(). This processor was blocking inEmitterProcessor.onNext(Object). This behaviour can be implemented with theSinksAPI by callingSinks.Many.tryEmitNext(Object)and retrying, e.g.:while (sink.tryEmitNext(v).hasFailed()) { LockSupport.parkNanos(10); }Processors will be removed in 3.5. Prefer usingSinks.Manyinstead, or see https://github.com/reactor/reactor-core/issues/2431 for alternativesProcessors will be removed in 3.5. Prefer usingSinks.OneorSinks.Emptyinstead, or see https://github.com/reactor/reactor-core/issues/2431 for alternativesTo be removed in 3.5, prefer clear cut usage ofSinksthrough variations underSinks.many().replay().to be removed in 3.5, prefer clear cut usage ofSinksthrough variations underSinks.many().unicast().prefer using the new reactor-core-micrometer module Micrometer entrypoint. To be removed in 3.6.0 at the earliest.Prefer using the reactor-core-micrometer module and configuring it using the Micrometer entrypoint.
-
Deprecated Annotation TypesAnnotation TypeDescriptionUse
NonNullinstead. To removed in 3.9.0 the earliest.UseNullMarkedinstead. To be removed in 3.9.0 the earliest.UseNullableinstead. To be removed in 3.9.0 the earliest.
-
Deprecated MethodsMethodDescriptionTo be removed in 3.5. Closest sink is
Sinks.many().multicast().directBestEffort(), except it doesn't terminate overflowing downstreams.useSinks.many().multicast().onBackpressureBuffer()(or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.useSinks.many().multicast().onBackpressureBuffer(bufferSize, boolean)using the old default ofQueues.SMALL_BUFFER_SIZEfor thebufferSize(or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.useSinks.many().multicast().onBackpressureBuffer(bufferSize)(or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.useSinks.many().multicast().onBackpressureBuffer(bufferSize, autoCancel)(or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.useFlux.firstWithSignal(Iterable). To be removed in reactor 3.5.useFlux.firstWithSignal(Publisher[]). To be removed in reactor 3.5.replace withtake(n, true)in 3.4.x, thenFlux.take(long)in 3.5.0. To be removed in 3.6.0 at the earliest. See https://github.com/reactor/reactor-core/issues/2339UseFlux.mergeComparingDelayError(int, Comparator, Publisher[])instead (asFlux.mergeComparing(Publisher[])don't have this operator's delayError behavior). To be removed in 3.6.0 at the earliest.UseFlux.mergeComparingDelayError(int, Comparator, Publisher[])instead (asFlux.mergeComparing(Publisher[])don't have this operator's delayError behavior). To be removed in 3.6.0 at the earliest.UseFlux.mergeComparingDelayError(int, Comparator, Publisher[])instead (asFlux.mergeComparing(Publisher[])don't have this operator's delayError behavior). To be removed in 3.6.0 at the earliest.UseFlux.mergeComparingWith(Publisher, Comparator)instead (with the caveat that it defaults to NOT delaying errors, unlike this operator). To be removed in 3.6.0 at the earliest.Prefer using theFlux.tap(SignalListenerFactory)with theSignalListenerFactoryprovided by the new reactor-core-micrometer module. To be removed in 3.6.0 at the earliest.useFlux.shareNext()instead, or use `publish().next()` if you need to `connect(). To be removed in 3.5.0Because users tend to forget torequestthe subsciption. If the behavior is really needed, consider usingFlux.subscribeWith(Subscriber). To be removed in 3.5.to be removed in 3.6.0 at the earliest. In 3.5.0, you should replace calls with prefetch=0 with calls to switchMap(fn), as the default behavior of the single-parameter variant will then change to prefetch=0.to be removed in 3.6.0 at the earliest. In 3.5.0, you should replace calls with prefetch=0 with calls to switchOnNext(mergedPublishers), as the default behavior of the single-parameter variant will then change to prefetch=0.To be removed in 3.5, prefer clear cut usage ofSinksthrough theSinks.many()spec.To be removed in 3.5, prefer clear cut usage ofSinksthrough theSinks.many()spec.To be removed in 3.6.0 at the earliest. Prefer using #contextView() instead.Should only be used by the instrumentation, DOES NOT guarantee any compatibilityShould only be used by the instrumentation, DOES NOT guarantee any compatibilityuseMono.firstWithSignal(Iterable). To be removed in reactor 3.5.useMono.firstWithSignal(Mono[]). To be removed in reactor 3.5.Prefer using theMono.tap(SignalListenerFactory)with theSignalListenerFactoryprovided by the new reactor-core-micrometer module. To be removed in 3.6.0 at the earliest.theMonoProcessorwill cease to implementSubscriptionin 3.5UseSinks.one(), to be removed in 3.5theMonoProcessorwill cease to implementSubscriptionand this method will be removed in 3.5this method is discouraged, consider peeking into a MonoProcessor byturning it into a CompletableFuturetheMonoProcessorwill cease to implementSubscriptionin 3.5To be removed in 3.6.0 at the earliest. Prefer using #contextView() instead.useSinks.many().replay().latest()(or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.useSinks.many().replay().latestOrDefault(value)(or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.useSinks.many().replay().all()(or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.useSinks.many().replay().limit(historySize)(or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.useSinks.many().replay().limit(historySize)for bounded cases (unbounded == false) orSinks.many().replay().all(bufferSize)otherwise (or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.useSinks.many().replay().limit(size, maxAge)(or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.useSinks.many().replay().limit(size, maxAge, scheduler)(or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.useSinks.many().replay().limit(maxAge)(or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.useSinks.many().replay().limit(maxAge, scheduler)(or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.To be removed in 3.6.0 at the earliest. Prefer using #contextView() instead.useSinks.many().unicast().onBackpressureBuffer()(or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.useSinks.many().unicast().onBackpressureBuffer(queue)(or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.useSinks.many().unicast().onBackpressureBuffer(queue, endCallback)(or the unsafe variant if you're sure about external synchronization). TheonOverflowcallback is not supported anymore. To be removed in 3.5.useSinks.many().unicast().onBackpressureBuffer(queue, endCallback)(or the unsafe variant if you're sure about external synchronization). To be removed in 3.5.Micrometer APIs generally deduplicate tags and key-value pairs by default, so for related use cases preferScannable.tags().UseScheduler.init()instead. The use of this method is discouraged. Some implementations allowed restarting a Scheduler, while others did not. One of the issues with restarting is that checkingthe disposed stateis unreliable in concurrent scenarios.prefer using Micrometer#timedScheduler from the reactor-core-micrometer module. To be removed at the earliest in 3.6.0.prefer using Micrometer#timedScheduler from the reactor-core-micrometer module. To be removed at the earliest in 3.6.0.will be removed in 3.5, kept for backward compatibility with 3.3. Until then if you need to work around the deprecation, useContext.putAll(ContextView)combined withContext.readOnly()prefer explicit usage of the reactor-core-micrometer module. To be removed in 3.6.0 at the earliest.prefer using Micrometer setup in new reactor-core-micrometer module. To be removed at the earliest in 3.6.0.prefer using Micrometer setup in new reactor-core-micrometer module. To be removed at the earliest in 3.6.0.
-
Deprecated ConstructorsConstructorDescription
Sinks. Closest sink isSinks.many().multicast().directBestEffort(), except it doesn't terminate overflowing downstreams.