- Spring 5.0 Microservices(Second Edition)
- Rajesh R V
- 79字
- 2021-07-02 19:45:04
Processor
A Processor represents a processing stage--which is both a Subscriber and a Publisher, and MUST obey the contracts of both. A of can be chained by connecting a Publisher and Subscriber:
public interface Processor<T, R> extends Subscriber<T>,
Publisher<R> {
}
Reactor has two implementations for Publisher--Flux and Mono. Flux can emit 0...N events, whereas, Mono is for a single event (0...1). Flux is required when many data elements or a list of values is transmitted as Streams.
推薦閱讀
- 演進式架構(原書第2版)
- TypeScript入門與實戰
- Apache Oozie Essentials
- Xcode 7 Essentials(Second Edition)
- MongoDB for Java Developers
- 跟小海龜學Python
- x86匯編語言:從實模式到保護模式(第2版)
- 網頁設計與制作教程(HTML+CSS+JavaScript)(第2版)
- INSTANT Django 1.5 Application Development Starter
- OpenCV 4計算機視覺項目實戰(原書第2版)
- C++20高級編程
- Creating Data Stories with Tableau Public
- Modern C++ Programming Cookbook
- Practical GIS
- 深度學習程序設計實戰