Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Reactive Programming With Java 8
  • Table Of Contents Toc
  • Feedback & Rating feedback
Learning Reactive Programming With Java 8

Learning Reactive Programming With Java 8

By : Nickolay Tzvetinov
3.6 (5)
close
close
Learning Reactive Programming With Java 8

Learning Reactive Programming With Java 8

3.6 (5)
By: Nickolay Tzvetinov

Overview of this book

If you are a Java developer that knows how to write software and would like to learn how to apply your existing skills to reactive programming, this book is for you.
Table of Contents (10 chapters)
close
close
9
Index

Chapter 3. Creating and Connecting Observables, Observers, and Subjects

RxJava's Observable instances are the building blocks of reactive applications, and this advantage of RxJava is beneficial. If we have a source Observable instance, we could chain logic to it and subscribe for the result. All we need is this initial Observable instance.

In the browser or in a desktop application, user input is already represented by events that we can handle and forward through Observable instances. But it would be great to turn all of our data changes or actions into Observable instances, not just user input. For example, when we read data from a file, it would be neat to look at every line read or every sequence of bytes as a message that can be emitted through an Observable instance.

We'll look in detail at how different data sources can be transformed into Observable instances; it doesn't matter if they are external (files or user input) or internal (collections or scalars...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon