Subscription

A Subscription is shared by exactly one Publisher and one Subscriber for the purpose of mediating data exchange between this pair. Data exchange happens when the subscriber calls request. cancel is used basically to stop the subscription as seen in this example:

    public interface Subscription {
public void request(long n);
public void cancel();
}