The Subscription interface

The definition of this interface is as follows:

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

The method request is for accepting requests for items and method cancel is for when Subscription is cancelled.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.179.161