- Hands-On Reactive Programming with Reactor
- Rahul Sharma
- 231字
- 2021-08-13 15:22:56
The Flux API
Flux<T> is a general purpose reactive publisher. It represents a stream of asynchronous events with zero or more values, optionally terminated by either a completion signal or an error. It is important to note that a Flux emits the following three events:
- Value refers to the values generated by the publisher
- Completion refers to a normal termination of the stream
- Error refers to an erroneous termination of the stream:

All of the preceding events are optional. This can lead to streams of the following types:
- Infinite stream: A publisher generating only value events, and no terminal events (completion and error)
- Infinite empty stream: A stream generating no value events and no terminating events
- Finite stream: A publisher generating N finite values, followed by a terminal event
- Empty stream: A publisher generating no value events, and only terminal events
Flux supports the generation of all preceding variations, so it can be used for most of the generic use cases. It can also generate sequences of alerts for an application. The alerts are an infinite stream of values, with no terminal. Flux can also be used to stream order data from an order database. The order values get terminated at the last order value. It may be the case that there are no orders for a particular product type, making the stream empty for that type.
- Word 2003、Excel 2003、PowerPoint 2003上機(jī)指導(dǎo)與練習(xí)
- Hands-On Internet of Things with MQTT
- Julia 1.0 Programming
- ServiceNow Cookbook
- 深度學(xué)習(xí)中的圖像分類與對(duì)抗技術(shù)
- SharePoint 2010開發(fā)最佳實(shí)踐
- AWS Certified SysOps Administrator:Associate Guide
- 手機(jī)游戲程序開發(fā)
- 網(wǎng)絡(luò)管理工具實(shí)用詳解
- PLC與變頻技術(shù)應(yīng)用
- Artificial Intelligence By Example
- 三菱FX/Q系列PLC工程實(shí)例詳解
- Mastering Ansible(Second Edition)
- Getting Started with Tableau 2018.x
- Practical Network Automation