Reactor
Recipes to perform Reactor migration tasks.
Composite Recipes
Recipes that include further recipes, often including the individual recipes below.
- Migrate to Reactor 3.5
- Replace various
Processor.cache
calls with theirSinks
equivalent - Replace various
Processor.create
calls with theirSinks
equivalent
Recipes
- 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
MonoProcessor.create()
withSinks.one()
- Replace
ReplayProcessor.cacheLast()
withSinks.many().replay().latest()
- Replace
ReplayProcessor.cacheLast()
withSinks.many().replay().latest()
- 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
UnicastProcessor.create()
withSinks.many().unicast().onBackpressureBuffer()
- Replace
UnicastProcessor.create(Queue)
withSinks.many().unicast().onBackpressureBuffer(Queue)
- Replace
UnicastProcessor.create(Queue, Consumer, Disposable)
withSinks.many().unicast().onBackpressureBuffer(Queue, Disposable)
- Replace
UnicastProcessor.create(Queue, Disposable)
withSinks.many().unicast().onBackpressureBuffer(Queue, Disposable)
- Replace
doAfterSuccessOrError
calls withtap
operator