February 2018
Intermediate to advanced
552 pages
13h 46m
English
In the Flow API, a Subscription works as a mediator or interface between two other important components, Publisher and Subscriber. It connects those components and works as a message controller or channel so that a Publisher can emit data into a Subscription and one or more subscribers who subscribe to that Publisher and receive data from that Subscription:

In the Java 9 Flow API, this Subscription is an interface with a set of methods and is defined as follows:
public static interface Subscription {
public void request(long n);
public void cancel() ;
}
It contains the following two methods to control the messaging ...
Read now
Unlock full access