Replace various Processor.create calls with their Sinks equivalent
ProprietaryAs of 3.5 Processors are deprecated and Sinks are preferred.
org. openrewrite. reactive. reactor. ReactorProcessorCreateToSinkRecipesmod run . --recipe= org. openrewrite. reactive. reactor. ReactorProcessorCreateToSinkRecipesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Replace
MonoProcessor.create()withSinks.one() - Replace
ReplayProcessor.create()withSinks.many().replay().all() - Replace
ReplayProcessor.create(int)withSinks.many().replay().limit(int) - Replace
ReplayProcessor.create(int, false)withSinks.many().replay().limit(int) - Replace
ReplayProcessor.create(int, true)withSinks.many().replay().all(int) - Replace
ReplayProcessor.createSizeAndTimeout(int, Duration)withSinks.many().replay().limit(int, duration) - Replace
ReplayProcessor.createSizeAndTimeout(int, Duration, Scheduler)withSinks.many().replay().limit(int, Duration, Scheduler) - Replace
ReplayProcessor.createTimeout(Duration)withSinks.many().replay().limit(duration) - Replace
ReplayProcessor.createTimeout(Duration, Scheduler)withSinks.many().replay().limit(Duration, Scheduler) - Replace
DirectProcessor.create()withSinks.many().multicast().directBestEffort() - Replace
EmitterProcessor.create()withSinks.many().multicast().onBackpressureBuffer() - Replace
EmitterProcessor.create(Boolean)withSinks.many().multicast().onBackpressureBuffer(Queues.SMALL_BUFFER_SIZE, Boolean) - Replace
EmitterProcessor.create(int)withSinks.many().multicast().onBackpressureBuffer(int) - Replace
EmitterProcessor.create(int, Boolean)withSinks.many().multicast().onBackpressureBuffer(int, Boolean) - Replace
UnicastProcessor.create()withSinks.many().unicast().onBackpressureBuffer() - Replace
UnicastProcessor.create(Queue)withSinks.many().unicast().onBackpressureBuffer(Queue) - Replace
UnicastProcessor.create(Queue, Disposable)withSinks.many().unicast().onBackpressureBuffer(Queue, Disposable) - Replace
UnicastProcessor.create(Queue, Consumer, Disposable)withSinks.many().unicast().onBackpressureBuffer(Queue, Disposable)