-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproject-reactor-core.drawio
1226 lines (1226 loc) · 174 KB
/
project-reactor-core.drawio
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<mxfile host="Electron" modified="2024-04-27T16:22:37.011Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/21.6.5 Chrome/114.0.5735.243 Electron/25.3.1 Safari/537.36" etag="UY3kKwQF2z_dFZO5wfqb" version="21.6.5" type="device" pages="2">
<diagram name="几个测试的源码分析" id="a8pONaKq-KVtjoL9c5xY">
<mxGraphModel dx="3088" dy="879" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="CK6vnS1zt3dgLDD-GHNz-1" value="<p style="line-height: 1"></p><h1><font style="font-size: 20px">Project-Rector-Core 工作原理</font><font style="font-size: 16px">&nbsp;</font><font style="font-size: 10px">(v3.5.8)&nbsp;<br style="font-size: 10px"></font></h1><div style="font-size: 10px">ProjectReactor是Spring母公司借鉴RxJava开发的符合响应式编程规范Reactive Streams的Java响应式编程框架。</div><p style="font-size: 10px"><font style="font-size: 10px">前提:</font></p><p style="font-size: 10px"></p><ul style="font-size: 10px"><li style="font-size: 10px">清楚reactive-stream规范的jvm实现的组件和流程细节,这是理解ProjectReactor reactor-core 源码的基础</li></ul><div>说明:<br><ul><li>从下面源码实现上看个人认为响应式实现还是主要基于<b>发布订阅模式</b>,类似<b>观察者模式</b>(只是没有典型的Listener定义),只是结合<b>函数式编程</b>从<b>代码架构上优化</b>提供了一种更好用、更易理解(如果对Reactive Streams规范不了解刚开始还是挺不好理解的)的“回调”或“任务编排”实现 (核心其实还是基于回调思想,只是封装成了发布订阅模式的样子)。</li><li style="border-color: var(--border-color);">源码中发布者、调度器的创建都是通过&nbsp;<b style="border-color: var(--border-color);">门面模式</b>(<b style="border-color: var(--border-color);">外观模式</b>)使用抽象的门面类创建,<font color="#007fff">比如发布者的Flux、Mono,调度器的 Schedulers</font>,另外大量使用了<b style="background-color: initial;">装饰器模式</b><span style="background-color: initial;"><font color="#007fff">(用于拓展比如异步、背压、Map、Filter等功能,如原始的发布者如FluxRange最后可能包装了好多层,订阅者也可能被封装很多层,actual 成员变量就是存被包装的对象的)</font>,Subscription 是</span><b style="background-color: initial;">桥接模式</b><span style="background-color: initial;">,了解这个以及Reactive Stream 再看源码就感觉清晰明了了</span></li><li>源码7W多行但是看流程并不复杂,更多的代码应该是为了适配更多的场景提供的,比如Mono的子类就有100多个</li><li>下面流程精简了一些细节<br></li></ul></div><p style="font-size: 10px"></p><p></p>" style="text;html=1;strokeColor=none;fillColor=none;spacing=5;spacingTop=-20;whiteSpace=wrap;overflow=hidden;rounded=0;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="10" y="10" width="1270" height="210" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-4" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-2" target="CK6vnS1zt3dgLDD-GHNz-3" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-2" target="CK6vnS1zt3dgLDD-GHNz-5" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-2" value="<font style="font-size: 10px;">Flux&lt;Integer&gt; intFlux = Flux.<b>range</b>(1, 1000);<br><font color="#007fff">Flux只是个门面,range创建发布者<br>FluxRange</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="240" y="240" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-3" target="CK6vnS1zt3dgLDD-GHNz-9" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-3" value="return onAssembly(new <b>FluxRange</b>(start, count));<br><font color="#007fff">onAssembly()装饰器模式</font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="440" y="240" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-5" target="CK6vnS1zt3dgLDD-GHNz-7" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="420" y="430" />
<mxPoint x="420" y="670" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-14" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-5" target="CK6vnS1zt3dgLDD-GHNz-16" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="440" y="430" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-5" value="<font style="font-size: 10px;">intFlux.<b>subscribe</b>(new <b>BaseSubscriber</b>&lt;Integer&gt;() {...});<br><font color="#007fff">创建订阅者并订阅发布者</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="240" y="400" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-7" target="CK6vnS1zt3dgLDD-GHNz-29" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-70" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;dashed=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-7" target="CK6vnS1zt3dgLDD-GHNz-69" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-43" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;dashed=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-7" target="nTmsKCs9zrsigBeYAdxU-41" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-44" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;dashed=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-7" target="nTmsKCs9zrsigBeYAdxU-42" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-46" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;dashed=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-7" target="nTmsKCs9zrsigBeYAdxU-45" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-7" value="订阅者回调钩子" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="440" y="640" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-9" target="CK6vnS1zt3dgLDD-GHNz-11" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-9" value="<font style="font-size: 10px;">Function&lt;Publisher, Publisher&gt; hook = Hooks.onEachOperatorHook;<br><font color="#007fff">这里hook为空,略</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="640" y="240" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-11" value="<div style=""><font style="font-size: 10px;">if(hook != null) {</font></div><div style=""><font style="font-size: 10px;">&nbsp; &nbsp; source = (Flux&lt;T&gt;) hook.<b>apply</b>(source);</font></div><div style=""><font style="font-size: 10px;">}</font></div><div style=""><font style="font-size: 10px;">return source;</font></div>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;align=left;" parent="1" vertex="1">
<mxGeometry x="640" y="320" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-15" value="<font style="font-size: 10px;"><b>FluxRange</b></font>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="485" y="370" width="70" height="30" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-19" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-16" target="CK6vnS1zt3dgLDD-GHNz-18" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-16" value="<font style="font-size: 10px;">actual.<b>onSubscribe</b>(new <b>RangeSubscription</b>(actual, st, en));<br><font color="#007fff">这里actual是BaseSubscriber</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="440" y="400" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-21" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-18" target="CK6vnS1zt3dgLDD-GHNz-20" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-18" value="<font style="font-size: 10px;">new <b>RangeSubscription</b>(actual, st, en)<br><font color="#007fff">装饰器模式将BaseSubscriber包装为与FluxRange对应的消费者</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="640" y="400" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-23" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-20" target="CK6vnS1zt3dgLDD-GHNz-22" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-25" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-20" target="CK6vnS1zt3dgLDD-GHNz-24" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-20" value="<font style="">if (Operators.<b>setOnce</b>(S, this, s))&nbsp;<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="640" y="480" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-31" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.25;entryDx=0;entryDy=0;fillColor=#d5e8d4;strokeColor=#000000;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-22" target="CK6vnS1zt3dgLDD-GHNz-29" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="860" y="590" />
<mxPoint x="860" y="630" />
<mxPoint x="620" y="630" />
<mxPoint x="620" y="655" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-22" value="<font style=""><b>hookOnSubscribe</b>(s);&nbsp;<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="640" y="560" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-24" value="<font style="">field.compareAndSet(instance, null, s)<br><font color="#007fff">通过CAS当<b>最终订阅者</b>为空时更新为包装后的订阅者,这里是改为 RangeSubscription</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="880" y="480" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-33" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-29" target="CK6vnS1zt3dgLDD-GHNz-32" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-29" value="hookOnSubscribe(Subscription subscription)" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="640" y="640" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-36" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-32" target="CK6vnS1zt3dgLDD-GHNz-35" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-32" value="<b>request</b>(1);<br><font color="#007fff">请求发布者发送一个元素</font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="880" y="640" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-34" value="<b>BaseSubscriber</b>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="460" y="610" width="110" height="30" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-43" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-35" target="CK6vnS1zt3dgLDD-GHNz-40" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-35" value="if (Operators.validate(n)):<br>Subscription s = this.<b>subscription</b>;<br>if (s != null):<br>s.<b>request</b>(n);<br><font color="#007fff">n是请求元素个数,只要大于0就有效</font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="1120" y="640" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-49" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-40" target="CK6vnS1zt3dgLDD-GHNz-48" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-40" value="RangeSubscription#request(long n)" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="1360" y="640" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-52" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-48" target="CK6vnS1zt3dgLDD-GHNz-50" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1860" y="670" />
<mxPoint x="1860" y="730" />
<mxPoint x="860" y="730" />
<mxPoint x="860" y="770" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-48" value="<div style="font-size: 9px;"><font style="font-size: 9px;">if (Operators.validate(n)) {</font></div><div style="font-size: 9px;"><font style="font-size: 9px;">&nbsp; &nbsp; if (Operators.<b>addCap</b>(REQUESTED, this, n) == 0) {</font></div><div style="font-size: 9px;"><font style="font-size: 9px;">&nbsp; &nbsp; &nbsp; &nbsp; if (n == Long.MAX_VALUE) {</font></div><div style="font-size: 9px;"><font style="font-size: 9px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <b>fastPath</b>();</font></div><div style="font-size: 9px;"><font style="font-size: 9px;">&nbsp; &nbsp; &nbsp; &nbsp; } else {</font></div><div style="font-size: 9px;"><font style="font-size: 9px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <b>slowPath</b>(n);</font></div><div style="font-size: 9px;"><font style="font-size: 9px;">&nbsp; &nbsp; &nbsp; &nbsp; }</font></div><div style="font-size: 9px;"><font style="font-size: 9px;">&nbsp; &nbsp; }</font></div><div style="font-size: 9px;"><font style="font-size: 9px;">}</font></div>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;align=left;arcSize=5;" parent="1" vertex="1">
<mxGeometry x="1600" y="620" width="240" height="100" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-59" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-50" target="CK6vnS1zt3dgLDD-GHNz-58" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-50" value="RangeSubscription#<b>slowPath</b>(long n)" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="880" y="740" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-62" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-53" target="CK6vnS1zt3dgLDD-GHNz-61" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-53" value="for start" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="1120" y="820" width="200" height="30" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-55" value="for end" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="1120" y="1040" width="200" height="30" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-57" value="<font color="#007fff" style="font-size: 10px;">这一步通过actual、subscription,&nbsp;BaseSubscriber 与&nbsp;RangeSubscription 组成了环形引用&nbsp;</font>" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="850" y="415" width="420" height="30" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-60" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-58" target="CK6vnS1zt3dgLDD-GHNz-53" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-58" value="final Subscriber&lt;? super Integer&gt; a = actual;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="1120" y="740" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-64" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-61" target="CK6vnS1zt3dgLDD-GHNz-63" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-68" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-61" target="CK6vnS1zt3dgLDD-GHNz-67" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-61" value="a.<b>onNext</b>((int) i);" style="whiteSpace=wrap;html=1;fontSize=10;rounded=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="1120" y="880" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-65" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-63" target="CK6vnS1zt3dgLDD-GHNz-55" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="TQo1rzmmMs-oyPfZzubr-2" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.25;entryDx=0;entryDy=0;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-63" target="nTmsKCs9zrsigBeYAdxU-45" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1540" y="990" />
<mxPoint x="1540" y="1290" />
<mxPoint x="630" y="1290" />
<mxPoint x="630" y="1315" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-63" value="a.<b>onComplete</b>();<br><font color="#007fff">没有更多元素,发送结束信号</font>" style="whiteSpace=wrap;html=1;fontSize=10;rounded=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="1120" y="960" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-66" value="<font color="#007fff">即循环发送元素,直到结束</font>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="940" y="820" width="170" height="30" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-71" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.25;entryDx=0;entryDy=0;fillColor=#d5e8d4;strokeColor=#000000;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-67" target="CK6vnS1zt3dgLDD-GHNz-69" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1580" y="910" />
<mxPoint x="1580" y="1080" />
<mxPoint x="630" y="1080" />
<mxPoint x="630" y="1155" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-67" value="<div style="font-size: 9px;"><font style="font-size: 9px;">try {</font></div><div style="font-size: 9px;"><font style="font-size: 9px;">&nbsp; &nbsp; <b>hookOnNext</b>(value);</font></div><div style="font-size: 9px;"><font style="font-size: 9px;">} catch (Throwable throwable) {</font></div><div style="font-size: 9px;"><font style="font-size: 9px;">&nbsp; &nbsp; <b>onError</b>(Operators.onOperatorError(</font></div><div style="font-size: 9px;"><font style="font-size: 9px;">subscription, throwable, value, currentContext()));</font></div><div style="font-size: 9px;"><font style="font-size: 9px;">}</font></div>" style="whiteSpace=wrap;html=1;fontSize=10;rounded=1;align=left;arcSize=8;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="1360" y="870" width="200" height="80" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-4" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="CK6vnS1zt3dgLDD-GHNz-69" target="nTmsKCs9zrsigBeYAdxU-3" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="CK6vnS1zt3dgLDD-GHNz-69" value="hookOnNext(T value)" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="640" y="1140" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="nTmsKCs9zrsigBeYAdxU-3" target="nTmsKCs9zrsigBeYAdxU-5" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-8" value="Y" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="nTmsKCs9zrsigBeYAdxU-6" vertex="1" connectable="0">
<mxGeometry x="-0.2" y="2" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-11" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="nTmsKCs9zrsigBeYAdxU-3" target="nTmsKCs9zrsigBeYAdxU-9" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-12" value="N" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="nTmsKCs9zrsigBeYAdxU-11" vertex="1" connectable="0">
<mxGeometry x="0.1167" y="1" relative="1" as="geometry">
<mxPoint y="-7" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-3" value="integer &lt; 10" style="rhombus;whiteSpace=wrap;html=1;fontSize=10;rounded=1;" parent="1" vertex="1">
<mxGeometry x="880" y="1140" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-7" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.75;entryDx=0;entryDy=0;" parent="1" source="nTmsKCs9zrsigBeYAdxU-5" target="CK6vnS1zt3dgLDD-GHNz-32" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1220" y="1130" />
<mxPoint x="1220" y="1090" />
<mxPoint x="850" y="1090" />
<mxPoint x="850" y="685" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-5" value="request(1)" style="whiteSpace=wrap;html=1;fontSize=10;rounded=1;" parent="1" vertex="1">
<mxGeometry x="1080" y="1100" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-40" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="nTmsKCs9zrsigBeYAdxU-9" target="nTmsKCs9zrsigBeYAdxU-39" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-9" value="<b>cancel</b>()<br><font color="#007fff">当interger为10后调用</font>" style="whiteSpace=wrap;html=1;fontSize=10;rounded=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="1080" y="1180" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-14" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;interface&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">Processor</b></p><hr style="font-size: 10px;"><font color="#007fff">既是订阅者有时发布者,不推荐使用</font>" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-270" y="298.5" width="180" height="61.5" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-15" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;interface&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">Publisher</b></p><hr style="font-size: 10px;"><p style="margin: 0px 0px 0px 4px; line-height: 1.6;"><font color="#007fff">发布者是任意数量序列元素的提供者</font></p><p style="margin: 0px 0px 0px 4px; line-height: 1.6;"><font color="#007fff">//请求发布者开始传输流数据给某个订阅者</font></p><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;">+ subscribe(Subscriber&lt;T&gt;): void</p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-280" y="80" width="240" height="100" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-16" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;interface&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">Subscriber</b></p><hr style="font-size: 10px;"><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;"><span style="background-color: initial;"><font color="#007fff">//调用Publisher.subscribe(Subscriber)后会被回调,负责调用</font></span></p><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;"><span style="background-color: initial;"><font color="#007fff">Subscription.request(long) 来请求发布者发送数据</font></span></p><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;"><span style="background-color: initial;">+ onSubscribe(Subscription): void</span></p><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;"><font color="#007fff">//发布者发送数据元素的处理回调,传参带过来的就是元素,</font><span style="color: rgb(0, 127, 255); background-color: initial;">或者称为事件</span></p><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;">+ onNext(T): void</p><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;"><font color="#007fff">//正常结束流元素传输,手动主动结束或者元素传输完毕</font></p><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;">+ onComplete(): void</p><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;"><font color="#007fff">//异常结束流元素传输,比如处理过程中抛出异常需要结束流处理</font><br style="font-size: 10px;">+ onError(Throwable): void</p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-680" y="80" width="358" height="200" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-17" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;interface&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">Subscription(发布订阅模式的调度中心)</b></p><hr style="font-size: 10px;"><p style="margin: 0px 0px 0px 4px; line-height: 1.6;"><font style="" color="#007fff">这个类是调度中心,定义数据发送,回调订阅者回调方法<br></font></p><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;"><font color="#007fff">//请求n个流元素</font></p><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;">+ request(long): void</p><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 9px;"><font style="font-size: 9px;" color="#007fff">//停止发送流元素,并清理资源,cancel之前已经请求的元素还是会发送</font><br style="">+ cancel(): void</p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-680" y="298.5" width="360" height="121.5" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-18" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=0;startArrow=none;endArrow=block;endSize=12;strokeColor=#008200;exitX=0.606;exitY=0;exitDx=0;exitDy=0;entryX=0.500;entryY=1.000;entryDx=0;entryDy=0;fontSize=10;exitPerimeter=0;" parent="1" source="nTmsKCs9zrsigBeYAdxU-14" target="nTmsKCs9zrsigBeYAdxU-15" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points">
<mxPoint x="-161" y="197" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-19" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=0;startArrow=none;endArrow=block;endSize=12;strokeColor=#008200;exitX=0.500;exitY=0.001;exitDx=0;exitDy=0;entryX=1.000;entryY=0.688;entryDx=0;entryDy=0;fontSize=10;" parent="1" source="nTmsKCs9zrsigBeYAdxU-14" target="nTmsKCs9zrsigBeYAdxU-16" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points">
<mxPoint x="-180" y="218" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-21" value="<font style="font-size: 10px;">Publisher 与 Subscriber 可以是一对多的关系,每个 Subscriber 只能向单个Publisher订阅一次<br>Subscription 的定义看上去就是数据源<br></font>" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="-680" y="30" width="480" height="50" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-22" value="" style="shape=curlyBracket;whiteSpace=wrap;html=1;rounded=1;labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;" parent="1" vertex="1">
<mxGeometry x="-710" y="80" width="20" height="340" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-23" value="reactive-stream <br>API规范" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="-820" y="220" width="110" height="40" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-33" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=1;entryY=0.87;entryDx=0;entryDy=0;endArrow=block;endFill=1;entryPerimeter=0;" parent="1" source="nTmsKCs9zrsigBeYAdxU-26" target="nTmsKCs9zrsigBeYAdxU-16" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="-501" y="440" />
<mxPoint x="-501" y="430" />
<mxPoint x="-302" y="430" />
<mxPoint x="-302" y="254" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-26" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><font style="font-size: 10px;"><i style="">&lt;&lt;interface&gt;&gt;</i><br><b style="">CoreSubscriber</b></font></p><hr style="font-size: 10px;" size="1"><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;"><font style="font-size: 10px;">+ currentContext(): Context</font></p><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;"><font style="font-size: 10px;"><font color="#007fff">//@Override, 只是为了加点文档注释<br></font>+ onSubscribe(Subscription): void</font></p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=14;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-612" y="440" width="224" height="103" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-32" style="rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;dashed=1;endArrow=block;endFill=1;edgeStyle=orthogonalEdgeStyle;" parent="1" source="nTmsKCs9zrsigBeYAdxU-28" target="nTmsKCs9zrsigBeYAdxU-26" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-34" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0.75;entryDx=0;entryDy=0;dashed=1;" parent="1" target="nTmsKCs9zrsigBeYAdxU-17" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="-290" y="579" as="sourcePoint" />
<Array as="points">
<mxPoint x="-290" y="579" />
<mxPoint x="-290" y="376" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-28" value="BaseSubscriber" style="swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-680" y="580" width="480" height="380" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-29" value="<div style="font-size: 10px;"><font color="#007fff" style="font-size: 10px;">//这个往往指最终的订阅者,即自定义订阅器经过层层装饰后的订阅者</font></div><div style="font-size: 10px;"><font style="font-size: 10px;">volatile Subscription <b>subscription</b>;</font></div><div style="font-size: 10px;"><font style="font-size: 10px;">static AtomicReferenceFieldUpdater&lt;BaseSubscriber, Subscription&gt; <b>S</b> =</font></div><div style="font-size: 10px;"><font style="font-size: 10px;"><span style="white-space: pre;">	</span>AtomicReferenceFieldUpdater.newUpdater(BaseSubscriber.class, Subscription.class, "subscription");</font><span style="font-size: 11px;"></span></div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" parent="nTmsKCs9zrsigBeYAdxU-28" vertex="1">
<mxGeometry y="26" width="480" height="74" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-30" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;" parent="nTmsKCs9zrsigBeYAdxU-28" vertex="1">
<mxGeometry y="100" width="480" height="8" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-31" value="<div># hookOnCancel(): void</div><div>+ onError(Throwable): void</div><div>+ cancel(): void</div><div>+ onSubscribe(Subscription): void</div><div># hookOnSubscribe(Subscription): void</div><div>+ toString(): String</div><div>+ request(long): void</div><div># hookFinally(SignalType): void</div><div># hookOnComplete(): void</div><div>+ onNext(T): void</div><div>+ dispose(): void</div><div>+ onComplete(): void</div><div># upstream(): Subscription</div><div># hookOnNext(T): void</div><div>~ safeHookFinally(SignalType): void</div><div># hookOnError(Throwable): void</div><div>+ requestUnbounded(): void</div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" parent="nTmsKCs9zrsigBeYAdxU-28" vertex="1">
<mxGeometry y="108" width="480" height="272" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-37" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="nTmsKCs9zrsigBeYAdxU-36" target="CK6vnS1zt3dgLDD-GHNz-2" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-36" value="<font style="">BaseSubscriberTest#<br>partialRequestAndCancel()<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1">
<mxGeometry x="40" y="240" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-38" value="<font color="#007fff">这里只发送&lt;10的元素, <br>每次请求发送一个元素</font>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="885" y="1200" width="140" height="40" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-49" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.25;entryDx=0;entryDy=0;fillColor=#d5e8d4;strokeColor=#000000;" parent="1" source="nTmsKCs9zrsigBeYAdxU-39" target="nTmsKCs9zrsigBeYAdxU-42" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1510" y="1210" />
<mxPoint x="1510" y="1450" />
<mxPoint x="630" y="1450" />
<mxPoint x="630" y="1475" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-50" value="finally" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="nTmsKCs9zrsigBeYAdxU-49" vertex="1" connectable="0">
<mxGeometry x="-0.9313" y="1" relative="1" as="geometry">
<mxPoint x="9" y="-1" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="TQo1rzmmMs-oyPfZzubr-3" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.25;entryDx=0;entryDy=0;" parent="1" source="nTmsKCs9zrsigBeYAdxU-39" target="nTmsKCs9zrsigBeYAdxU-41" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1500" y="1210" />
<mxPoint x="1500" y="1370" />
<mxPoint x="630" y="1370" />
<mxPoint x="630" y="1395" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="TQo1rzmmMs-oyPfZzubr-4" value="<font style="font-size: 10px;">catch</font>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="TQo1rzmmMs-oyPfZzubr-3" vertex="1" connectable="0">
<mxGeometry x="-0.9023" y="2" relative="1" as="geometry">
<mxPoint x="-12" y="-3" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-39" value="<div style="font-size: 8px;"><font style="font-size: 8px;">if (<b>Operators.terminate(S, this)</b>) {</font></div><div style="font-size: 8px;"><font style="font-size: 8px;">&nbsp; &nbsp; try {</font></div><div style="font-size: 8px;"><font style="font-size: 8px;">&nbsp; &nbsp; &nbsp; &nbsp; <b>hookOnCancel</b>();</font></div><div style="font-size: 8px;"><font style="font-size: 8px;">&nbsp; &nbsp; }</font></div><div style="font-size: 8px;"><font style="font-size: 8px;">&nbsp; &nbsp; catch (Throwable throwable) {</font></div><div style="font-size: 8px;"><font style="font-size: 8px;">&nbsp; &nbsp; &nbsp; &nbsp; <b>hookOnError</b>(Operators.onOperatorError(subscription, throwable, currentContext()));</font></div><div style="font-size: 8px;"><font style="font-size: 8px;">&nbsp; &nbsp; }</font></div><div style="font-size: 8px;"><font style="font-size: 8px;">&nbsp; &nbsp; finally {</font></div><div style="font-size: 8px;"><font style="font-size: 8px;">&nbsp; &nbsp; &nbsp; &nbsp; <b>safeHookFinally</b>(SignalType.<b>CANCEL</b>);</font></div><div style="font-size: 8px;"><font style="font-size: 8px;">&nbsp; &nbsp; }</font></div><div style="font-size: 8px;"><font style="font-size: 8px;">}</font></div>" style="whiteSpace=wrap;html=1;fontSize=10;rounded=1;fillColor=#dae8fc;strokeColor=#6c8ebf;align=left;arcSize=3;" parent="1" vertex="1">
<mxGeometry x="1240" y="1140" width="240" height="140" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-41" value="hookOnError(Throwable throwable)" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="640" y="1380" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-42" value="hookFinally(SignalType type)" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="640" y="1460" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-45" value="hookOnComplete()" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="640" y="1300" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-60" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="nTmsKCs9zrsigBeYAdxU-52" target="nTmsKCs9zrsigBeYAdxU-59" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-64" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="nTmsKCs9zrsigBeYAdxU-52" target="nTmsKCs9zrsigBeYAdxU-63" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-52" value="<font style="">StepVerifier.create(...)<br><font color="#007fff">是ProjectReactor提供的测试类</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="240" y="1560" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-56" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="nTmsKCs9zrsigBeYAdxU-57" target="nTmsKCs9zrsigBeYAdxU-52" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-57" value="<font style="">MonoCreateTest#<br>createStreamFromMonoCreate()<br><font color="#007fff">MonoCreate元素发送与结果处理的测试</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1">
<mxGeometry x="40" y="1560" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-62" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="nTmsKCs9zrsigBeYAdxU-59" target="nTmsKCs9zrsigBeYAdxU-61" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-59" value="<font style="">StepVerifier.expectNext("test1")<br><font color="#007fff">存储期望的结果,用于后面校验</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="240" y="1640" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-71" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="nTmsKCs9zrsigBeYAdxU-61" target="nTmsKCs9zrsigBeYAdxU-70" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-61" value="<font style="">StepVerifier.verifyComplete()<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="240" y="1740" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-66" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="nTmsKCs9zrsigBeYAdxU-63" target="nTmsKCs9zrsigBeYAdxU-65" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-69" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;dashed=1;" parent="1" source="nTmsKCs9zrsigBeYAdxU-63" target="nTmsKCs9zrsigBeYAdxU-67" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-63" value="<font style="">Mono.create(...)<br><font color="#007fff">Mono也只是门面</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="440" y="1560" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-65" value="<font style="">return onAssembly(<br>new <b>MonoCreate</b>&lt;&gt;(callback));<br><font color="#007fff">onAssembly同前面一样默认没做什么直接返回MonoCreate对象</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="640" y="1560" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-38" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" source="nTmsKCs9zrsigBeYAdxU-67" target="nTmsKCs9zrsigBeYAdxU-77" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="860" y="1670" />
<mxPoint x="860" y="1960" />
<mxPoint x="790" y="1960" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-67" value="<font style="">Consumer&lt;<b>MonoSink</b>&lt;T&gt;&gt; callback<br><font color="#007fff">这里定义的方法最终是要赋值给MonoSink对象的</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="640" y="1640" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-73" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="nTmsKCs9zrsigBeYAdxU-70" target="nTmsKCs9zrsigBeYAdxU-72" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-70" value="<font style="">publisher.<b>subscribe</b>(newVerifier);<br><font color="#007fff">此publisher即前面的MonoCreate<br>由此可见StepVerifier是作为订阅者</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="440" y="1740" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-76" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="nTmsKCs9zrsigBeYAdxU-72" target="nTmsKCs9zrsigBeYAdxU-75" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-72" value="<font style="">DefaultMonoSink&lt;T&gt; emitter = new <b>DefaultMonoSink</b>&lt;&gt;(actual);<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="640" y="1740" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-74" value="MonoCreate" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="695" y="1710" width="90" height="30" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-78" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="nTmsKCs9zrsigBeYAdxU-75" target="nTmsKCs9zrsigBeYAdxU-77" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-82" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="nTmsKCs9zrsigBeYAdxU-75" target="nTmsKCs9zrsigBeYAdxU-81" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-75" value="<font style="">actual.<b>onSubscribe</b>(emitter);<br><font color="#007fff">这里并没有像上面那个案例一样调用request()方法后就发送元素,第一次发送元素是后面success()中发出的</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="640" y="1820" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-80" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="nTmsKCs9zrsigBeYAdxU-77" target="nTmsKCs9zrsigBeYAdxU-79" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-2" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="nTmsKCs9zrsigBeYAdxU-77" target="utpMoaJwS99ryY_kJ8n_-1" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-77" value="<font style=""><b>callback</b>.accept(emitter);<br><font color="#007fff">实则是给MonoSink装配上一些方法</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="640" y="1980" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-79" value="<font style="">如果上一步抛出异常<br>emitter.<b>error</b>(Operators.onOperatorError(ex, actual.currentContext()));<br><font color="#007fff">会调用订阅者onError()方法</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="640" y="2220" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-99" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="nTmsKCs9zrsigBeYAdxU-81" target="nTmsKCs9zrsigBeYAdxU-98" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-81" value="<font style="">onExpectation(<br>Signal.subscribe(subscription));<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="880" y="1820" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-83" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><b style="font-size: 10px;">AtomicBoolean</b></p><hr style="font-size: 10px;">" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-197" y="1162" width="157" height="33" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-84" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><b style="font-size: 10px;">DefaultMonoSink</b></p><hr style="font-size: 10px;"><div>final CoreSubscriber&lt;? super T&gt; <b>actual</b>;</div><div>volatile Disposable disposable;</div><div>volatile int <b>state</b>;</div><div>volatile LongConsumer <b>requestConsumer</b>;</div><div>T value;</div><div style="font-size: 9px;"><font style="font-size: 9px;"><br></font></div><div style="font-size: 9px;"><font style="font-size: 9px;">static final AtomicReferenceFieldUpdater&lt;DefaultMonoSink, Disposable&gt; DISPOSABLE = ...;</font></div><div style="font-size: 9px;"><font style="font-size: 9px;">static final AtomicIntegerFieldUpdater&lt;DefaultMonoSink&gt; STATE = ...;</font></div><div style="font-size: 9px;"><font style="font-size: 9px;">static final AtomicReferenceFieldUpdater&lt;DefaultMonoSink, LongConsumer&gt; REQUEST_CONSUMER = ...;</font></div><div style="font-size: 9px;"><br></div><div><font color="#007fff">//继承MonoSink</font></div><div>+ success(): void</div><div>+ success(T?): void</div><div>+ onRequest(LongConsumer): MonoSink&lt;T&gt;</div><div>+ onCancel(Disposable): MonoSink&lt;T&gt;</div><div>+ onDispose(Disposable): MonoSink&lt;T&gt;</div><div>+ currentContext(): Context</div><div>+ error(Throwable): void</div><div>+ contextView(): ContextView</div><div><br></div><div><font color="#007fff">//继承InnerProducer</font></div><div>+ actual(): CoreSubscriber&lt;T&gt;</div><div>+ scanUnsafe(Attr): Object?</div><div><br></div><div><font color="#007fff">//继承Subsciption</font></div><div>+ request(long): void</div><div>+ cancel(): void</div><div style="font-size: 10px;"><br></div>" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-560" y="1240" width="440" height="360" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-85" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;annotation&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">FunctionalInterface</b></p><hr style="font-size: 10px;">" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-533" y="1000" width="186" height="39" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-86" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;interface&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">InnerProducer<o style="font-size: 10px;"></o></b></p><hr style="font-size: 10px;">" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-455" y="1162" width="180" height="39" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-87" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;interface&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">MonoSink<t style="font-size: 10px;"></t></b></p><hr style="font-size: 10px;">" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-621" y="1162" width="146" height="39" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-88" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;interface&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">Scannable</b></p><hr style="font-size: 10px;">" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-501" y="1081" width="122" height="39" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-89" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;interface&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">Serializable</b></p><hr style="font-size: 10px;">" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-183" y="1081" width="129" height="39" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-90" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;interface&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">Subscription</b></p><hr style="font-size: 10px;">" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="-359" y="1081" width="139" height="39" as="geometry" />
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-91" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=1;startArrow=none;endArrow=block;endSize=12;strokeColor=#008200;exitX=0.500;exitY=0.002;exitDx=0;exitDy=0;entryX=0.500;entryY=1.002;entryDx=0;entryDy=0;fontSize=10;" parent="1" source="nTmsKCs9zrsigBeYAdxU-83" target="nTmsKCs9zrsigBeYAdxU-89" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points" />
</mxGeometry>
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-92" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=0;startArrow=none;endArrow=block;endSize=12;strokeColor=#000082;exitX=0.750;exitY=0.001;exitDx=0;exitDy=0;entryX=0.500;entryY=1.001;entryDx=0;entryDy=0;fontSize=10;" parent="1" source="nTmsKCs9zrsigBeYAdxU-84" target="nTmsKCs9zrsigBeYAdxU-83" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points">
<mxPoint x="-230" y="1223" />
<mxPoint x="-118" y="1223" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-93" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=1;startArrow=none;endArrow=block;endSize=12;strokeColor=#008200;exitX=0.250;exitY=0.001;exitDx=0;exitDy=0;entryX=0.500;entryY=1.001;entryDx=0;entryDy=0;fontSize=10;" parent="1" source="nTmsKCs9zrsigBeYAdxU-84" target="nTmsKCs9zrsigBeYAdxU-86" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points">
<mxPoint x="-450" y="1223" />
<mxPoint x="-456" y="1223" />
<mxPoint x="-456" y="1213" />
<mxPoint x="-365" y="1213" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-94" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=1;startArrow=none;endArrow=block;endSize=12;strokeColor=#008200;exitX=0.250;exitY=0.001;exitDx=0;exitDy=0;entryX=0.500;entryY=1.001;entryDx=0;entryDy=0;fontSize=10;" parent="1" source="nTmsKCs9zrsigBeYAdxU-84" target="nTmsKCs9zrsigBeYAdxU-87" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points">
<mxPoint x="-450" y="1223" />
<mxPoint x="-456" y="1223" />
<mxPoint x="-456" y="1213" />
<mxPoint x="-548" y="1213" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-95" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=0;startArrow=none;endArrow=block;endSize=12;strokeColor=#008200;exitX=0.500;exitY=0.002;exitDx=0;exitDy=0;entryX=0.500;entryY=1.002;entryDx=0;entryDy=0;fontSize=10;" parent="1" source="nTmsKCs9zrsigBeYAdxU-86" target="nTmsKCs9zrsigBeYAdxU-88" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points">
<mxPoint x="-365" y="1137" />
<mxPoint x="-440" y="1137" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-96" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=0;startArrow=none;endArrow=block;endSize=12;strokeColor=#008200;exitX=0.500;exitY=0.002;exitDx=0;exitDy=0;entryX=0.500;entryY=1.002;entryDx=0;entryDy=0;fontSize=10;" parent="1" source="nTmsKCs9zrsigBeYAdxU-86" target="nTmsKCs9zrsigBeYAdxU-90" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points">
<mxPoint x="-365" y="1137" />
<mxPoint x="-290" y="1137" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-97" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=1;dashPattern=1 1;startArrow=none;endArrow=none;strokeColor=#999900;exitX=0.500;exitY=0.002;exitDx=0;exitDy=0;entryX=0.500;entryY=1.002;entryDx=0;entryDy=0;fontSize=10;" parent="1" source="nTmsKCs9zrsigBeYAdxU-88" target="nTmsKCs9zrsigBeYAdxU-85" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points" />
</mxGeometry>
</mxCell>
<mxCell id="nTmsKCs9zrsigBeYAdxU-98" value="<font style="">subscription.<b>request</b>(initialRequest);<br><font color="#007fff">没有触发发送数据,更多的是状态初始化</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="880" y="1900" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-4" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-1" target="utpMoaJwS99ryY_kJ8n_-3" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-1" value="<font style="">onDispose()<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="880" y="1980" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-3" target="utpMoaJwS99ryY_kJ8n_-5" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-3" value="<font style="">onCancel()<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="880" y="2060" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-5" target="utpMoaJwS99ryY_kJ8n_-7" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-5" value="<font style="">success()<font color="#007fff"><br>此方法和request()方法作用一样</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="880" y="2140" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-7" target="utpMoaJwS99ryY_kJ8n_-9" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-15" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.25;entryDx=0;entryDy=0;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" source="utpMoaJwS99ryY_kJ8n_-7" target="utpMoaJwS99ryY_kJ8n_-13" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1340" y="2170" />
<mxPoint x="1340" y="2460" />
<mxPoint x="630" y="2460" />
<mxPoint x="630" y="2485" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-7" value="<font style="">actual.onNext()<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="1120" y="2140" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-27" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="utpMoaJwS99ryY_kJ8n_-9" target="utpMoaJwS99ryY_kJ8n_-26" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-36" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.25;entryDx=0;entryDy=0;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" source="utpMoaJwS99ryY_kJ8n_-9" target="utpMoaJwS99ryY_kJ8n_-20" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1350" y="2250" />
<mxPoint x="1350" y="2550" />
<mxPoint x="630" y="2550" />
<mxPoint x="630" y="2585" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-9" value="<font style="">actual.onComplete()<br><font color="#007fff">因为Mono是只能发送0-1个元素,所以发送完一个数据就结束了</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="1120" y="2220" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-11" value="<font style="font-size: 10px;" color="#007fff">这里展示的流程省略了很多细节</font>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="40" y="1628" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-14" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-12" target="utpMoaJwS99ryY_kJ8n_-13" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-34" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;dashed=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-12" target="utpMoaJwS99ryY_kJ8n_-20" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-35" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;dashed=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-12" target="utpMoaJwS99ryY_kJ8n_-33" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-12" value="<font style="font-size: 9px;">DefaultStepVerifierBuilder<br>订阅者(<b>DefaultVerifySubscriber</b>)回调钩子<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="440" y="2470" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-17" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-13" target="utpMoaJwS99ryY_kJ8n_-16" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-13" value="<font style="">onNext(T t)<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="640" y="2470" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-19" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-16" target="utpMoaJwS99ryY_kJ8n_-18" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-16" value="<font style=""><div>Signal&lt;T&gt; signal = Signal.next(t);</div><div>if (!checkRequestOverflow(signal)) {</div><div>&nbsp; &nbsp; onExpectation(signal);</div><div>}</div><div><font color="#007fff">信号未溢出地话和期望结果对比进行校验</font></div></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;align=left;arcSize=7;" parent="1" vertex="1">
<mxGeometry x="880" y="2470" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-18" value="<font style="">signalEvent.test(actualSignal);<br><font color="#007fff">将实际结果和期望结果都封装成信号了</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;align=center;arcSize=12;" parent="1" vertex="1">
<mxGeometry x="1120" y="2470" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-23" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-20" target="utpMoaJwS99ryY_kJ8n_-22" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-20" value="<font style="">onComplete()<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="640" y="2570" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-22" value="<font style=""><div>onExpectation(Signal.complete());<br></div></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="880" y="2570" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="utpMoaJwS99ryY_kJ8n_-26" target="utpMoaJwS99ryY_kJ8n_-29" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-32" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-26" target="utpMoaJwS99ryY_kJ8n_-31" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-26" value="<font style="">finally:<br>disposeResource(false);<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="1120" y="2300" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-29" value="<font style="">this.value = value;<br>STATE.<b>compareAndSet</b>(this, s, NO_REQUEST_HAS_VALUE<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="1120" y="2378" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-37" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.25;entryDx=0;entryDy=0;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" source="utpMoaJwS99ryY_kJ8n_-31" target="utpMoaJwS99ryY_kJ8n_-33" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1580" y="2330" />
<mxPoint x="1580" y="2660" />
<mxPoint x="630" y="2660" />
<mxPoint x="630" y="2685" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-31" value="<font style="">d.dispose();<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="1360" y="2300" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-33" value="<font style="">onDispose()<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="640" y="2670" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-46" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="utpMoaJwS99ryY_kJ8n_-39" target="utpMoaJwS99ryY_kJ8n_-43" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-39" value="<font style="">WebFlux Netty bind Mono<br><font color="#007fff">演示WebFlux中使用Netty作为服务器,bind阶段 Mono的用法</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1">
<mxGeometry x="40" y="2760" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-40" value="<font style="font-size: 10px;" color="#007fff">这个测试是根据WebFlux源码去除业务只保留<br>Mono相关逻辑提取出来的测试<br>原代码在NettyServer bind成功之后以阻塞等待的方式获取<br>Mono发布者在bind成功之后发布的DisposableBind对象<br></font>" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="40" y="2835" width="280" height="70" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-41" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-43" target="utpMoaJwS99ryY_kJ8n_-44" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-42" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;dashed=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-43" target="utpMoaJwS99ryY_kJ8n_-45" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-64" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-43" target="utpMoaJwS99ryY_kJ8n_-63" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-43" value="<font style="">Mono.<b>create</b>(...)<br><font color="#007fff">Mono也只是门面</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="240" y="2760" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-44" value="<font style="">return onAssembly(<br>new <b>MonoCreate</b>&lt;&gt;(callback));<br><font color="#007fff">onAssembly同前面一样默认没做什么直接返回MonoCreate对象</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="440" y="2760" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-45" value="<font style="">Consumer&lt;<b>MonoSink</b>&lt;T&gt;&gt; callback<br><font color="#007fff">这里定义的方法最终是要赋值给MonoSink对象的</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="440" y="2840" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-48" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.75;entryY=1;entryDx=0;entryDy=0;endArrow=block;endFill=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-47" target="nTmsKCs9zrsigBeYAdxU-15" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="-152" y="430" />
<mxPoint x="-60" y="430" />
<mxPoint x="-60" y="250" />
<mxPoint x="-100" y="250" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-47" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><font style="font-size: 10px;"><i style="">&lt;&lt;interface&gt;&gt;</i><br><b style="">CorePublisher</b></font></p><hr style="font-size: 10px;" size="1"><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;"><span style="background-color: initial;">+ void subscribe(CoreSubscriber&lt;? super T&gt;&nbsp;</span></p><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;"><span style="background-color: initial;"><span style="white-space: pre;">	</span>subscriber);</span><br></p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=14;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-264" y="440" width="224" height="103" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-49" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;interface&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">CorePublisher<t style="font-size: 10px;"></t></b></p><hr style="font-size: 10px;"><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;">+ subscribe(CoreSubscriber&lt;T&gt;): void</p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-287" y="1787" width="247" height="73" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-50" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;annotation&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">FunctionalInterface</b></p><hr style="font-size: 10px;">" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-858" y="1662" width="186" height="39" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-61" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;endArrow=block;endFill=1;fontSize=10;" parent="1" source="utpMoaJwS99ryY_kJ8n_-51" target="utpMoaJwS99ryY_kJ8n_-60" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-51" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><b style="font-size: 10px;">MonoCreate</b></p><hr style="font-size: 10px;"><p style="margin: 0px 0px 0px 4px; line-height: 1.6;">final Scheduler timedScheduler;</p><p style="margin: 0px 0px 0px 4px; line-height: 1.6;">final long delay;</p><p style="margin: 0px 0px 0px 4px; line-height: 1.6;">final TimeUnit unit;</p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-520" y="2040" width="360" height="120" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-52" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;interface&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">Publisher<t style="font-size: 10px;"></t></b></p><hr style="font-size: 10px;"><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;">+ subscribe(Subscriber&lt;T&gt;): void</p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-413" y="1640" width="220" height="73" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-53" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;interface&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">Scannable</b></p><hr style="font-size: 10px;"><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;">+ tags(): Stream&lt;Tuple2&lt;String, String&gt;&gt;<br style="font-size: 10px;">+ isScanAvailable(): boolean<br style="font-size: 10px;">+ from(Object?): Scannable<br style="font-size: 10px;">+ actuals(): Stream&lt;Scannable&gt;<br style="font-size: 10px;">+ scanUnsafe(Attr): Object?<br style="font-size: 10px;">+ inners(): Stream&lt;Scannable&gt;<br style="font-size: 10px;">+ stepName(): String<br style="font-size: 10px;">+ tagsDeduplicated(): Map&lt;String, String&gt;<br style="font-size: 10px;">+ parents(): Stream&lt;Scannable&gt;<br style="font-size: 10px;">+ name(): String<br style="font-size: 10px;">+ scan(Attr&lt;T&gt;): T?<br style="font-size: 10px;">+ scanOrDefault(Attr&lt;T&gt;, T): T<br style="font-size: 10px;">+ steps(): Stream&lt;String&gt;</p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-902" y="1740" width="274" height="346" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-54" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;interface&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">SourceProducer<o style="font-size: 10px;"></o></b></p><hr style="font-size: 10px;"><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;">+ scanUnsafe(Attr): Object?<br style="font-size: 10px;">+ stepName(): String</p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-591" y="1787" width="195" height="103" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-55" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=0;startArrow=none;endArrow=block;endSize=12;strokeColor=#008200;exitX=0.518;exitY=0.021;exitDx=0;exitDy=0;entryX=0.359;entryY=1.000;entryDx=0;entryDy=0;fontSize=10;" parent="1" source="utpMoaJwS99ryY_kJ8n_-49" target="utpMoaJwS99ryY_kJ8n_-52" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points">
<mxPoint x="-159" y="1750" />
<mxPoint x="-333" y="1750" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-56" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=1;startArrow=none;endArrow=block;endSize=12;strokeColor=#008200;entryX=0.500;entryY=1.001;entryDx=0;entryDy=0;fontSize=10;" parent="1" source="utpMoaJwS99ryY_kJ8n_-51" target="utpMoaJwS99ryY_kJ8n_-54" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points">
<mxPoint x="-340" y="2000" />
<mxPoint x="-493" y="2000" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-57" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=1;dashPattern=1 1;startArrow=none;endArrow=none;strokeColor=#999900;exitX=0.500;exitY=0.000;exitDx=0;exitDy=0;entryX=0.500;entryY=1.000;entryDx=0;entryDy=0;fontSize=10;" parent="1" source="utpMoaJwS99ryY_kJ8n_-53" target="utpMoaJwS99ryY_kJ8n_-50" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points" />
</mxGeometry>
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-58" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=0;startArrow=none;endArrow=block;endSize=12;strokeColor=#008200;exitX=0.500;exitY=0.000;exitDx=0;exitDy=0;entryX=0.359;entryY=1.000;entryDx=0;entryDy=0;fontSize=10;" parent="1" source="utpMoaJwS99ryY_kJ8n_-54" target="utpMoaJwS99ryY_kJ8n_-52" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points">
<mxPoint x="-490" y="1750" />
<mxPoint x="-333" y="1750" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-59" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=0;startArrow=none;endArrow=block;endSize=12;strokeColor=#008200;exitX=0.000;exitY=0.500;exitDx=0;exitDy=0;entryX=1.008;entryY=0.286;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=10;" parent="1" source="utpMoaJwS99ryY_kJ8n_-54" target="utpMoaJwS99ryY_kJ8n_-53" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points" />
</mxGeometry>
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-62" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;endArrow=block;endFill=1;dashed=1;fontSize=10;" parent="1" source="utpMoaJwS99ryY_kJ8n_-60" target="utpMoaJwS99ryY_kJ8n_-49" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-60" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><b style="font-size: 10px;">Mono</b></p><hr style="font-size: 10px;"><p style="margin: 0px 0px 0px 4px; line-height: 1.6; font-size: 10px;"><br style="font-size: 10px;"></p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-287" y="1910" width="247" height="50" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-66" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-63" target="utpMoaJwS99ryY_kJ8n_-65" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-63" value="<font style=""><font style="font-size: 9px;">DisposableBind disposableServer = mono.<b>block</b>(Duration.ofSeconds(45));</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="240" y="2920" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-68" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-65" target="utpMoaJwS99ryY_kJ8n_-67" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-65" value="<font style=""><font size="1">BlockingMonoSubscriber&lt;T&gt; subscriber = new <b>BlockingMonoSubscriber</b>&lt;&gt;(context);</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="440" y="2920" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-70" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-67" target="utpMoaJwS99ryY_kJ8n_-69" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-100" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-67" target="utpMoaJwS99ryY_kJ8n_-99" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-67" value="<font style=""><font size="1"><b>subscribe</b>((Subscriber&lt;T&gt;) subscriber);</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="440" y="3000" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-119" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-69" target="utpMoaJwS99ryY_kJ8n_-118" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-69" value="<font style=""><font size="1">return subscriber.<b>blockingGet</b>(timeout.toNanos(), TimeUnit.NANOSECONDS);</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="440" y="3420" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-71" value="BlockingMonoSubscriber" style="swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="-1148" y="830" width="248" height="130" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-73" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;fontSize=10;" parent="utpMoaJwS99ryY_kJ8n_-71" vertex="1">
<mxGeometry y="26" width="248" height="8" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-74" value="<div style="font-size: 10px;"><font color="#007fff">可以阻塞等待获取发布者发送的流元素</font></div><div style="font-size: 10px;"><br></div><div style="font-size: 10px;">+ onNext(T): void</div><div style="font-size: 10px;">+ onError(Throwable): void</div><div style="font-size: 10px;">+ stepName(): String</div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;fontSize=10;" parent="utpMoaJwS99ryY_kJ8n_-71" vertex="1">
<mxGeometry y="34" width="248" height="96" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-94" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=10;" parent="1" source="utpMoaJwS99ryY_kJ8n_-77" target="utpMoaJwS99ryY_kJ8n_-71" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-77" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><b style="font-size: 10px;">BlockingSingleSubscriber</b></p><hr style="font-size: 10px;"><div style="font-size: 10px;"><span style="font-size: 10px;"><font color="#007fff">&nbsp;//发布者发送的流元素对象</font></span></div><div style="font-size: 10px;"><font style="font-size: 10px;">&nbsp;T&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<b>value</b>;</font></div><div style="font-size: 10px;"><font style="font-size: 10px;"><font color="#007fff">&nbsp;//过程中出现的异常</font>&nbsp;</font></div><div style="font-size: 10px;"><font style="font-size: 10px;">&nbsp;Throwable <b>error</b>;&nbsp;</font></div><div style="font-size: 10px;"><font style="font-size: 10px;">&nbsp;Subscription <b>s</b>;</font></div><div style="font-size: 10px;"><font style="font-size: 10px;">&nbsp;final Context <b>context</b>;</font></div><div style="font-size: 10px;"><font style="font-size: 10px;">&nbsp;volatile boolean <b>cancelled</b>;</font></div><div style="font-size: 10px;"><font style="font-size: 10px;"><br style="font-size: 10px;"></font></div><div style="font-size: 10px;"><font style="font-size: 10px;"><div style="font-size: 10px;">+ isDisposed(): boolean</div><div style="font-size: 10px;">+ onSubscribe(Subscription): void</div><div style="font-size: 10px;">+ dispose(): void</div><div style="font-size: 10px;">+ onComplete(): void</div><div style="font-size: 10px;">+ currentContext(): Context</div><div style="font-size: 10px;">+ scanUnsafe(Attr): Object?</div></font></div>" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-1148" y="588" width="248" height="210" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-78" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;interface&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">CoreSubscriber<t style="font-size: 10px;"></t></b></p><hr style="font-size: 10px;">" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-1320" y="422" width="185" height="39" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-79" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><b style="font-size: 10px;">CountDownLatch</b></p><hr style="font-size: 10px;"><font color="#007fff">&nbsp;借助此类实现阻塞等待</font>" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-892" y="505" width="172" height="45" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-80" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;interface&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">Disposable</b></p><hr style="font-size: 10px;"><font color="#007fff">定义关闭和释放资源操作</font>" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-965" y="422" width="125" height="58" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-82" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;interface&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">InnerConsumer<i style="font-size: 10px;"></i></b></p><hr style="font-size: 10px;">" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-1231" y="505" width="180" height="39" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-83" value="<p style="margin: 4px 0px 0px; text-align: center; font-size: 10px;"><i style="font-size: 10px;">&lt;&lt;interface&gt;&gt;</i><br style="font-size: 10px;"><b style="font-size: 10px;">Scannable</b></p><hr style="font-size: 10px;">" style="verticalAlign=top;align=left;overflow=fill;fontSize=10;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;" parent="1" vertex="1">
<mxGeometry x="-1107" y="422" width="122" height="39" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-85" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=0;startArrow=none;endArrow=block;endSize=12;strokeColor=#000082;exitX=0.750;exitY=0.001;exitDx=0;exitDy=0;entryX=0.500;entryY=1.001;entryDx=0;entryDy=0;fontSize=10;" parent="1" source="utpMoaJwS99ryY_kJ8n_-77" target="utpMoaJwS99ryY_kJ8n_-79" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points">
<mxPoint x="-962" y="567" />
<mxPoint x="-806" y="567" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-86" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=1;startArrow=none;endArrow=block;endSize=12;strokeColor=#008200;exitX=0.250;exitY=0.001;exitDx=0;exitDy=0;entryX=0.500;entryY=1.001;entryDx=0;entryDy=0;fontSize=10;" parent="1" source="utpMoaJwS99ryY_kJ8n_-77" target="utpMoaJwS99ryY_kJ8n_-80" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points">
<mxPoint x="-1084" y="557" />
<mxPoint x="-903" y="557" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-87" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=1;startArrow=none;endArrow=block;endSize=12;strokeColor=#008200;exitX=0.250;exitY=0.001;exitDx=0;exitDy=0;entryX=0.500;entryY=1.001;entryDx=0;entryDy=0;fontSize=10;" parent="1" source="utpMoaJwS99ryY_kJ8n_-77" target="utpMoaJwS99ryY_kJ8n_-82" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points">
<mxPoint x="-1084" y="557" />
<mxPoint x="-1141" y="557" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-90" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=0;startArrow=none;endArrow=block;endSize=12;strokeColor=#008200;exitX=0.500;exitY=0.001;exitDx=0;exitDy=0;entryX=0.500;entryY=1.001;entryDx=0;entryDy=0;fontSize=10;" parent="1" source="utpMoaJwS99ryY_kJ8n_-82" target="utpMoaJwS99ryY_kJ8n_-78" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points">
<mxPoint x="-1141" y="479" />
<mxPoint x="-1227" y="479" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-91" value="" style="html=1;rounded=1;edgeStyle=orthogonalEdgeStyle;dashed=0;startArrow=none;endArrow=block;endSize=12;strokeColor=#008200;exitX=0.500;exitY=0.001;exitDx=0;exitDy=0;entryX=0.500;entryY=1.001;entryDx=0;entryDy=0;fontSize=10;" parent="1" source="utpMoaJwS99ryY_kJ8n_-82" target="utpMoaJwS99ryY_kJ8n_-83" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<Array as="points">
<mxPoint x="-1141" y="479" />
<mxPoint x="-1046" y="479" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-102" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-99" target="utpMoaJwS99ryY_kJ8n_-101" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-99" value="<font style=""><font size="1">publisher.subscribe(subscriber);</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="680" y="3000" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-104" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-101" target="utpMoaJwS99ryY_kJ8n_-103" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-101" value="<font style=""><font size="1">DefaultMonoSink&lt;T&gt; emitter = new DefaultMonoSink&lt;&gt;(actual);</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="920" y="3000" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-106" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-103" target="utpMoaJwS99ryY_kJ8n_-105" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-123" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-103" target="utpMoaJwS99ryY_kJ8n_-122" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-103" value="<font style=""><font size="1">actual.onSubscribe(emitter);<br></font><font color="#007fff">没有触发发送数据,更多的是状态初始化<br>HAS_REQUEST_NO_VALUE</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="920" y="3080" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-105" value="<font style=""><font size="1">s.request(Long.MAX_VALUE);</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="1160" y="3080" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-107" value="BlockingSingleSubscriber" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="1180" y="3050" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-146" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-118" target="utpMoaJwS99ryY_kJ8n_-145" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-118" value="<font style=""><font size="1">await(timeout, unit)</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="680" y="3420" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-125" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-122" target="utpMoaJwS99ryY_kJ8n_-124" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-127" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-122" target="utpMoaJwS99ryY_kJ8n_-126" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-122" value="<font style=""><font size="1">callback.accept(emitter);</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="920" y="3160" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-124" value="<font style="">如果上一步抛出异常<br style="border-color: var(--border-color);">emitter.<b style="border-color: var(--border-color);">error</b>(Operators.onOperatorError(ex, actual.currentContext()));<br style="border-color: var(--border-color);"><font style="border-color: var(--border-color);" color="#007fff">会调用订阅者onError()方法</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="920" y="3240" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-129" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-126" target="utpMoaJwS99ryY_kJ8n_-128" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-126" value="<font style=""><font size="1">执行测试模拟的bind操作</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="1160" y="3160" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-131" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-128" target="utpMoaJwS99ryY_kJ8n_-130" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-128" value="<font style=""><font size="1">DisposableBind disposableServer = new DisposableBind(sink, future);<br>sink.<b>onCancel</b>(disposableServer);</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="1160" y="3240" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-133" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-130" target="utpMoaJwS99ryY_kJ8n_-132" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-130" value="<font style=""><font size="1">disposableServer.operationComplete(future);</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="1160" y="3320" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-143" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="utpMoaJwS99ryY_kJ8n_-132" target="utpMoaJwS99ryY_kJ8n_-136" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-132" value="<font size="1" style=""><div style="">if (f.get()) {</div><div>&nbsp; &nbsp; sink.<b>success</b>(this);</div><div>} else {</div><div>&nbsp; &nbsp; sink.<b>error</b>(new RuntimeException("bind error"));</div><div>}</div></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;align=left;arcSize=5;" parent="1" vertex="1">
<mxGeometry x="1400" y="3310" width="200" height="80" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-134" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-136" target="utpMoaJwS99ryY_kJ8n_-139" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-135" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-136" target="utpMoaJwS99ryY_kJ8n_-141" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-136" value="<font size="1" style=""><div>actual.onNext(value);</div></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="1640" y="3320" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-137" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-139" target="utpMoaJwS99ryY_kJ8n_-140" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-138" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-139" target="utpMoaJwS99ryY_kJ8n_-142" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-139" value="<font size="1" style=""><div>actual.onComplete();</div></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="1640" y="3400" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-140" value="<font size="1" style=""><div>finally:</div><div>disposeResource(false);</div></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="1640" y="3480" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-141" value="<font size="1"><div>value = t;</div><div>countDown();</div></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="1880" y="3320" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-142" value="<font size="1" style=""><div>countDown();</div></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="1880" y="3400" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-144" value="BlockingSingleSubscriber" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="1660" y="3290" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-145" value="<font style=""><font size="1">return value;</font><br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="680" y="3500" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-147" value="BlockingSingleSubscriber" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="700" y="3390" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-149" value="<font color="#007fff" style="font-size: 10px;">这个测试(FluxRange + BaseSubsciber)<br>意为部分请求然后取消</font>" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="40" y="303.5" width="210" height="40" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-165" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="utpMoaJwS99ryY_kJ8n_-150" target="utpMoaJwS99ryY_kJ8n_-164" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-150" value="<font style="">FluxOnBackpressureLatestTest#<br>backpressuredComplex()<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1">
<mxGeometry x="40" y="3580" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-151" value="<font style="font-size: 10px;" color="#007fff">最后看一个较为复杂些的测试用例<br>包括:<br>1)异步处理(并行处理)<br>2)背压<br><br></font>" style="text;html=1;align=left;verticalAlign=top;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="40" y="3640" width="170" height="90" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-155" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-152" target="utpMoaJwS99ryY_kJ8n_-154" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-152" value="<font style="">Flux.<b>range</b>(1, 100)<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="240" y="3660" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-157" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-154" target="utpMoaJwS99ryY_kJ8n_-156" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-172" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="utpMoaJwS99ryY_kJ8n_-154" target="utpMoaJwS99ryY_kJ8n_-171" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="utpMoaJwS99ryY_kJ8n_-154" value="<font style="">.<b>subscribeOn</b>(Schedulers.<b>parallel</b>())<br></font>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="240" y="3740" width="160" height="60" as="geometry" />
</mxCell>