春季反应式-建筑响应

时间:2019-03-26 19:17:23

标签: spring response reactive

我有以下问题。我需要用我的方法建立一个Mono。我该怎么做?

public Mono<Model> foo() {

   //First call a service that gives Mono<A>
   Mono<A> a = << service that returns Mono<A> >>

   // Check if a's attribute isEligible is true
   // If true, then call another service that 
   // gives a Mono<B>

   //Create new C and set A's instance and B's
   // instance onto C, then return Mono<C>

}

0 个答案:

没有答案