Questions tagged [spring-reactive]

128 questions
0
votes
1 answer

How to convert List> into Flux>?

List> responses = apiCall() I would like to get Flux to await all mono-s from list. How could I achieve it ? P.S. I've found similar question but I need vice versa operation https://stackoverflow.com/a/44040346/2674303
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
0 answers

Mono/Flux published on ExecutorService does not terminate as expected

I tested a little around with the proposal in this thread: flux within executorservice and i have simplified the example a little to understand it easier. So, heres the example: ExecutorService executorService =…
Bernado
  • 548
  • 1
  • 6
  • 18
0
votes
2 answers

How can we convert the Flux< Employe > to Mono< Customers > object in Spring Reactive

How can we convert the Flux< Employe> to Mono< Customers > object? Flux< Employe> empFlux = getService(); // It will return list of Employe Employe { private String id; private String info;} // need transform the empFlux data to Mono<…
-1
votes
1 answer

Generate elements applying a function to two consecutive elements of a Reactor Flux

I have a Flux that will emit some elements, for the sake of simplicity suppose a Flux -> "1", "2", "3", "n" What I need to do is get two consecutive elements and apply an operation (e.g. flatMap) that will generate some elements from them.…
codependent
  • 23,193
  • 31
  • 166
  • 308
-1
votes
1 answer

Can't Find A Reponsitory

I have a repository interface as @Repository public interface WordRepository extends ReactiveCrudRepository {} And in the @SpringApplication class, I have @Bean ApplicationListener ready(WordRepository rep) { …
vic
  • 2,548
  • 9
  • 44
  • 74
-1
votes
1 answer

Subscription to request body not emmitting values in Spring Reactive

I have been strugling against this for two days now, and finally reach a dead end. Thing is, I'm handling a request like this: public Mono jsonBodyDemo(ServerRequest request) { …
-1
votes
1 answer

Callable state supplier for Flux.generate

I wonder that why type of state supplier in Flux.generate in spring reactor is a Callable not a Supplier? Is it because of preventing of blocking?
-1
votes
1 answer

unwrap string from Mono

I have a service that serve the uploading picture to server. I used Java Spring Reactive on this service, I rename the file with dateformat and need to return this new name. This is what i do in my service : @Override public Mono
user1290932
  • 207
  • 1
  • 6
  • 19
1 2 3
8
9