- 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.
推薦閱讀
- 攻守道:企業數字業務安全風險與防范
- Extending Symfony2 Web Application Framework
- 工業互聯網安全
- 黑客攻防與電腦安全從新手到高手(微視頻+火力升級版)
- 白帽子講Web安全(紀念版)
- 安全技術運營:方法與實踐
- Python Penetration Testing Cookbook
- 網絡運維親歷記 (網絡運維紀實文學)
- 數據安全與隱私計算(第3版)
- 解密彩虹團隊非凡實戰能力:企業安全體系建設(共5冊)
- 學電腦安全與病毒防范
- 編譯與反編譯技術實戰
- 持續集成:軟件質量改進和風險降低之道
- Disaster Recovery Using VMware vSphere Replication and vCenter Site Recovery Manager
- 網絡服務安全與監控