- Hands-On Spring Security 5 for Reactive Applications
- Tomcy John
- 62字
- 2021-07-23 18:59:13
The Processor interface
The definition of this interface is as follows:
public interface Processor<T, R> extends Subscriber<T>, Publisher<R> {
}
It inherits from both the Publisher and Subscriber interfaces and therefore inherits all the methods of these interfaces. The main aspect is that the Publisher can produce an item but the Subscriber can consume a different item than that produced by the Publisher.