- Hands-On Spring Security 5 for Reactive Applications
- Tomcy John
- 45字
- 2021-07-23 18:59:13
The Publisher Interface
The definition of this interface is as follows:
public interface Publisher<T> {
public void subscribe(Subscriber<? super T> s);
}
As you can see, Publisher allows the Subscriber interface to subscribe to it so as to receive the message when Publisher produces it.