- Spring 5.0 Microservices(Second Edition)
- Rajesh R V
- 70字
- 2021-07-02 19:45:04
Subscriber
Subscriber subscribes to a Publisher for consuming streams of data. It defines a set of callback methods, which will be called upon those events. Complete is when everything is done and success. Note, that all these are callback registrations, and the methods themselves do not respond with any data:
public interface Subscriber<T> {
public void onSubscribe(Subscription s);
public void onNext(T t);
public void onError(Throwable t);
public void onComplete();
}
推薦閱讀
- Building a Home Security System with Raspberry Pi
- Linux網絡程序設計:基于龍芯平臺
- Android NDK Beginner’s Guide
- 單片機應用技術
- SQL Server 2012數據庫管理與開發項目教程
- C++新經典
- HTML 5與CSS 3權威指南(第3版·上冊)
- 區塊鏈技術進階與實戰(第2版)
- Processing創意編程指南
- Web性能實戰
- Hands-On GUI Programming with C++ and Qt5
- Web Developer's Reference Guide
- PHP Microservices
- 啊哈C語言!:邏輯的挑戰(修訂版)
- Java EE實用教程