O'Reilly logo

Learning Reactive Programming with Java 8 by Nickolay Tsvetinov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Resource Management and Extending RxJava

Through the previous chapters, we've learned how to use RxJava's observables. We've been using many different operators and factory methods. The factory methods were the source of various Observable instances with different behavior and origin of their emissions. Using the operators, on the other hand, we've been building complex logic around these observables.

In this chapter, we'll learn how to create our own factory methods, which will be capable of managing their source resources. In order to do that, we'll need a way to manage and dispose of the resources. We've created and used multiple methods like this with source files, HTTP requests, folders, or data in the memory. But some of them don't ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required