For now my code looks like this:
List<Mono<ResponseEntity<String>>> response = queue.stream()
.map(req-> webClient
.post()
.bodyValue(req)
.retrieve()
.toEntity(String.class)
)
.collect(Collectors.toList());
How could I await the moment when all responses will be accepted ?
If some of requests are failed I would like to retry only them.
How could I achieve it?