Module life.expert
Package life.expert.common.reactivestreams
auxiliary functions for Spring reactive flows
-
Class Summary Class Description ForComprehension auxiliary static functions with arguments - several Function - functional for-comprehension pattern for reactive flows - required to convert a null value returned by a function to an empty flow event - at the first null value returned, the chain of nested calls stops 1) first group of functions,like For(flux,func1,func) take result of func1 and put in on the input fo func2 flux=>result1 func1(result1)=>result2 func2(result2)=>output result (as Publisher) A shortcut forts.flatMap(f)which allows us to write real for-comprehensions usingFor(...).yield(...).ForComprehension.FluxFor1<T1> For-comprehension with one Flux.ForComprehension.FluxFor2<T1,T2> For-comprehension with two Fluxs.ForComprehension.FluxFor3<T1,T2,T3> For-comprehension with three Fluxs.ForComprehension.FluxFor4<T1,T2,T3,T4> For-comprehension with 4 Fluxs.ForComprehension.FluxFor5<T1,T2,T3,T4,T5> For-comprehension with 5 Fluxs.ForComprehension.FluxFor6<T1,T2,T3,T4,T5,T6> For-comprehension with 6 Fluxs.ForComprehension.FluxFor7<T1,T2,T3,T4,T5,T6,T7> For-comprehension with 7 Fluxs.ForComprehension.FluxFor8<T1,T2,T3,T4,T5,T6,T7,T8> For-comprehension with 8 Fluxs.ForComprehension.MonoFor1<T1> For-comprehension with one Mono.ForComprehension.MonoFor2<T1,T2> For-comprehension with two Monos.ForComprehension.MonoFor3<T1,T2,T3> For-comprehension with three Monos.ForComprehension.MonoFor4<T1,T2,T3,T4> For-comprehension with 4 Monos.ForComprehension.MonoFor5<T1,T2,T3,T4,T5> For-comprehension with 5 Monos.ForComprehension.MonoFor6<T1,T2,T3,T4,T5,T6> For-comprehension with 6 Monos.ForComprehension.MonoFor7<T1,T2,T3,T4,T5,T6,T7> For-comprehension with 7 Monos.ForComprehension.MonoFor8<T1,T2,T3,T4,T5,T6,T7,T8> For-comprehension with 8 Monos.Patterns auxiliary static functions with arguments - several Mono 1) Gently convert Vavr's Try to Reactor's Flux monoFromNullableTry monoFromTry fluxFromNullableTry fluxFromTry 2) Range of Integers from start to end, even in reverse order.Preconditions service (static class)