public class Part05Merge {//========================================================================================// TODO Merge flux1 and flux2 values with interleavepublic Flux<User> mergeFluxWithInterleave(Flux<User> flux1, Flux<User> flux2) {return Flux.merge(flux1, flux2);}//========================================================================================// TODO Merge flux1 and flux2 values with no interleave (flux1 values and then flux2 values)public Flux<User> mergeFluxWithNoInterleave(Flux<User> flux1, Flux<User> flux2) {return Flux.concat(flux1, flux2);}//========================================================================================// TODO Create a Flux containing the value of mono1 then the value of mono2public Flux<User> createFluxFromMultipleMono(Mono<User> mono1, Mono<User> mono2) {return Flux.concat(mono1, mono2);}}
合并
本文来自博客园,作者:bigroc,转载请注明原文链接:https://www.cnblogs.com/bigroc/p/19210931
blog:http://www.bigroc.cn 博客园:https://www.cnblogs.com/bigroc