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

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.

主站蜘蛛池模板: 正镶白旗| 阿克| 安泽县| 贡嘎县| 新蔡县| 原阳县| 沙雅县| 荥经县| 兴仁县| 嵩明县| 万安县| 科技| 奎屯市| 格尔木市| 富民县| 集安市| 岳普湖县| 甘德县| 札达县| 稷山县| 鄂尔多斯市| 饶阳县| 太原市| 玉屏| 崇左市| 泽库县| 呼图壁县| 汾西县| 大关县| 中方县| 郸城县| 井陉县| 日土县| 定南县| 元江| 婺源县| 丰原市| 南木林县| 德保县| 浮山县| 东明县|