- 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.
推薦閱讀
- RESTful Java Web Services Security
- Metasploit Penetration Testing Cookbook(Third Edition)
- Practical Network Scanning
- 軟件開發(fā)安全之道:概念、設(shè)計(jì)與實(shí)施
- 諸神之眼:Nmap網(wǎng)絡(luò)安全審計(jì)技術(shù)揭秘
- 電腦安全與攻防入門很輕松(實(shí)戰(zhàn)超值版)
- 實(shí)用黑客攻防技術(shù)
- 數(shù)據(jù)安全架構(gòu)設(shè)計(jì)與實(shí)戰(zhàn)
- 黑客攻防從入門到精通
- Disaster Recovery Using VMware vSphere Replication and vCenter Site Recovery Manager
- VMware vCloud Security
- 網(wǎng)絡(luò)空間安全:拒絕服務(wù)攻擊檢測與防御
- 云計(jì)算安全防護(hù)技術(shù)
- 黑客攻防與電腦安全從新手到高手(超值版)
- 網(wǎng)絡(luò)空間安全體系