spring-webflux - 在 Project Reactor 中, "target"Mono/Flux 是什么?

标签 spring-webflux project-reactor

例如,Mono#transform method文档说明如下:

Transform this Mono in order to generate a target Mono

“目标单声道”是什么意思?

最佳答案

它并不总是一致的,但在 react 器文档中,“目标”的使用通常表明发布者的类型可能会发生变化。就 transform() 而言,我很确定它实际上是指“目标类型”,正如 transformDeferred()transformDeferredContextual( ) do - 它没有理由与标准 transform() 运算符有任何不同。

不过,不要想太多 - 它只是通过该方法转换的 Mono。 “目标”在您需要注意的 react 性上下文中没有任何特殊含义。

关于spring-webflux - 在 Project Reactor 中, "target"Mono/Flux 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66632420/

相关文章:

spring-boot - 为什么 Flux 启动后不能使用 concatWith

spring-boot - Reactive-Spring-Security-5.1.3.RELEASE,多重授权

java - 将 io.projectreactor 版本从 2.0.x 升级到 3.0.4 - 使用 Spring 框架

spring-boot - Webclient 在 Docker 中泄漏内存?

spring-boot - 使用 spring-security 和响应式(Reactive) spring 的自定义身份验证

java - 如何在 Spring Flux 错误处理程序中访问引用源对象?

java - 如何使用 Spring WebFlux Reactive 方式在处理函数中使用 Mono 和 Flux

java - 创建 Flux.fromIterable 后如何运行 onClose 操作?

java - 阻塞式 Spring Data 和响应式 Spring Data 之间的区别?

kotlin - 为什么执行挂起的存储库函数而不执行非挂起的存储库函数?