The Flow API

The Flow class is part of the java.util.concurrent package. It helps developers incorporate reactive programming in their applications. The class has one method, defaultBufferSize(), and four interfaces.

The defaultBufferSize() method is a static method that returns the default buffer size for publishing and subscribing buffering. Its default value is 256 and it is returned as an int.

Let's look at the four interfaces.

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

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