- 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();
}
推薦閱讀
- Getting Started with React
- Progressive Web Apps with React
- 軟件架構(gòu)設(shè)計:大型網(wǎng)站技術(shù)架構(gòu)與業(yè)務(wù)架構(gòu)融合之道
- Practical Windows Forensics
- 老“碼”識途
- Microsoft Azure Storage Essentials
- Scratch·愛編程的藝術(shù)家
- 零代碼實戰(zhàn):企業(yè)級應(yīng)用搭建與案例詳解
- Hadoop大數(shù)據(jù)分析技術(shù)
- Android Development Tools for Eclipse
- Oracle Data Guard 11gR2 Administration Beginner's Guide
- Java程序設(shè)計入門(第2版)
- Spring Boot學(xué)習(xí)指南:構(gòu)建云原生Java和Kotlin應(yīng)用程序
- 從零開始學(xué)UI設(shè)計·基礎(chǔ)篇
- 基于Docker的Redis入門與實戰(zhàn)