Skip to content

Tag: reactor

Reactive – Improve Mono syntax

I have this block of code that works fine: To summarize it: calls the isBlacklistedToken function (returns a Mono<Boolean> with the result of the refresh token) If the refresh token is blacklisted, throws an UnauthorizedException If the refresh token is not blacklisted, does the same process for the acc…

Smart way to handle nested flux operations

I have 2 query methods (findByName/findAnotherName) . Both of them return Mono<List> . I do some logic by compare results of these two methods, and then return one of them in a nested Flux operation. It may have a smart way to achieve same result though. Following is code snippet: Thanks in advance. Ans…