官术网_书友最值得收藏!

The Mono API

Now that we have covered the Flux API, let's look at Mono. It is capable of generating a maximum of one event. This is a specific use case for Flux, capable of handling one response model, such as data aggregation, HTTP request-response, service invocation response, and so on. It is important to note that a Mono emits the following three events:

  • Value refers to the single value generated by the publisher
  • Completion refers to a normal termination of the stream
  • Error refers to an erroneous termination of the stream

Since Mono is a subset of Flux, it supports a subset of Flux operators. Let's look at how to build a Mono.

主站蜘蛛池模板: 汉川市| 沂南县| 武安市| 祁东县| 灵寿县| 泌阳县| 买车| 襄垣县| 曲麻莱县| 长垣县| 德阳市| 南皮县| 乐亭县| 吉木萨尔县| 乌鲁木齐县| 蒙城县| 钟祥市| 鄂州市| 静海县| 淮阳县| 台北县| 信宜市| 龙州县| 山西省| 岑溪市| 体育| 邵阳县| 沙湾县| 阿拉善右旗| 屯门区| 松江区| 兴宁市| 毕节市| 玉林市| 莆田市| 香格里拉县| 湛江市| 新野县| 皮山县| 瑞安市| 孟州市|