Learn
Flux
Add Behavior
doOnNext
doOnComplete
- Flux completes successfully
doOnTerminate
- Flux terminates either successfully or failing with an error
doOnError
- Flux completes with an error
Mono
Add Behavior
doOnNext
- Mono completes by emitting value
doOnSuccess
- Mono completes with either
T or null
doOnError
- Mono completes with error
Error handling
onErrorResume(Throwable -> Publisher)
- used to convert to another Mono/Flux
onErrorReturn(Object fallbackValue)
- suppress exception and return default value
onErrorContinue
onErrorMap
onErrorStop
onErrorComplete
Fire and Forget
Hot and Cold Publishers
Reactor context vs ThreadLocal variables