- Hands-On Spring Security 5 for Reactive Applications
- Tomcy John
- 88字
- 2021-07-23 18:59:13
The Subscriber Interface
The definition of this interface is as follows:
public interface Subscriber<T> {
public void onSubscribe(Subscription s);
public void onNext(T t);
public void onError(Throwable t);
public void onComplete();
}
As you can see, the Subscriber interface's onSubscribe method allows Subscriber to be notified when Publisher accepts the Subscription. The onNext method is invoked when new items get published. As the name suggests, the onError method is invoked when there's an error and the onComplete method gets invoked when Publisher has completed its function.
推薦閱讀
- SASE原理、架構(gòu)與實踐
- 白帽子講Web安全(紀念版)
- 網(wǎng)絡(luò)安全保障能力研究
- 代碼審計:企業(yè)級Web代碼安全架構(gòu)
- 網(wǎng)絡(luò)運維親歷記 (網(wǎng)絡(luò)運維紀實文學(xué))
- 從0到1:CTFer成長之路
- 云原生安全技術(shù)實踐指南
- 學(xué)電腦安全與病毒防范
- Advanced Penetration Testing for Highly:Secured Environments(Second Edition)
- Disaster Recovery Using VMware vSphere Replication and vCenter Site Recovery Manager
- 數(shù)字政府網(wǎng)絡(luò)安全合規(guī)性建設(shè)指南:密碼應(yīng)用與數(shù)據(jù)安全
- 網(wǎng)絡(luò)空間安全導(dǎo)論
- 云計算安全防護技術(shù)
- 信息內(nèi)容安全管理及應(yīng)用
- INSTANT Kali Linux