- 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();
}
推薦閱讀
- Advanced Quantitative Finance with C++
- Python程序設計教程(第2版)
- 測試驅(qū)動開發(fā):入門、實戰(zhàn)與進階
- Python爬蟲開發(fā):從入門到實戰(zhàn)(微課版)
- Mastering Yii
- 名師講壇:Java微服務架構(gòu)實戰(zhàn)(SpringBoot+SpringCloud+Docker+RabbitMQ)
- 用Python實現(xiàn)深度學習框架
- Scala程序員面試算法寶典
- Working with Odoo
- SQL Server與JSP動態(tài)網(wǎng)站開發(fā)
- Java Web開發(fā)詳解
- Learning PHP 7
- 深入淺出Go語言編程
- 運維前線:一線運維專家的運維方法、技巧與實踐
- Ext JS 4 Plugin and Extension Development