doc: 阅读spring reactor文档

This commit is contained in:
asahi
2025-03-28 17:51:46 +08:00
parent cf6f069e79
commit 45de3952b7

View File

@@ -452,3 +452,4 @@ Flux<String> bridge = Flux.create(sink -> {
- `ERROR`:当下游无法`跟上`上游的数据发送速度时,上游将会发送`IllegalStateException`异常 - `ERROR`:当下游无法`跟上`上游的数据发送速度时,上游将会发送`IllegalStateException`异常
> 在上述描述中,`跟上`代表subscriber发送的request个数是否大于source产生的数据个数例如若下游只发送了`request(1)`但是source产生了两个数据调用了两次`sink.next`,那么第二次调用时`requested`已经为0会调用`onOverflow`方法发送`error`信号 > 在上述描述中,`跟上`代表subscriber发送的request个数是否大于source产生的数据个数例如若下游只发送了`request(1)`但是source产生了两个数据调用了两次`sink.next`,那么第二次调用时`requested`已经为0会调用`onOverflow`方法发送`error`信号
- `DROP`:当下游无法`跟上`上游的数据发送速度时(`上游发送onNext信号之前如果下游requested配额不足`),上游将会丢弃该数据,`sink.next`不做任何操作。