I'm using a spring boot application with Webflux.
I need to retry the request if i get some error, but also, I need to check if an object property is true. This property is a boolean to check if i can retry.
Example:
webClient
        .post()
        .uri(object.getUrl())
        .body(BodyInserters.fromValue(docRequest))
        .retrieve()
        .bodyToMono(Document.class)
        .retry()
        .filter(e -> object.isRetry())
i tried this way but the filter is not working.
There is any way to filter?
 
     
    