The Flow.Subscription interface

The Flow.Subscription interface ensures that only subscribers receive what is requested. Also, as you will see here, a subscription can be canceled at any time:

public static interface Flow.Subscription

This interface does not take any arguments and is the link that controls the messages between instances of Flow.Publisher and Flow.Subscriber. It has the following methods:

  • void cancel()
  • void request(long n)
..................Content has been hidden....................

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