RxJava Essentials

Learn reactive programming to create awesome Android and Java apps

RxJava Essentials

Ivan Morgillo

1 customer reviews
Learn reactive programming to create awesome Android and Java apps
Mapt Subscription
FREE
$29.99/m after trial
eBook
$4.80
RRP $23.99
Save 79%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$4.80
$29.99
$29.99p/m after trial
RRP $23.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781784399108
Paperback132 pages

Book Description

RxJava—Reactive Extensions for the JVM—is a library for composing asynchronous and event-based programs using Observable sequences for the Java VM, which will help you beat Android platform limitations to create astonishing Android apps.

Starting with some quick background information on the Rx .NET library, this book quickly moves on to your first example. You will understand Observables and learn to filter, transform, or merge them in detail. Next, you will learn how to get rid of Threads, AsyncTasks, and Handlers with Schedulers to create a smooth user experience. Develop an easy, ready-to-go approach to REST API communications and enrich your skills by working with new challenging examples.

By the end of the book, you will have explored the reactive programming world and will have created your first Android app without having to think about threading, networking, concurrency, and collection management.

The images have been taken from http://reactivex.io/ which is licensed under a Create Commons 3.0 Attribution license (https://creativecommons.org/licenses/by/4.0/)

Table of Contents

Chapter 1: RX – from .NET to RxJava
Microsoft Reactive Extensions
Landing in the Java world – Netflix RxJava
Summary
Chapter 2: Why Observables?
The Observer pattern
The RxJava Observer pattern toolkit
Summary
Chapter 3: Hello Reactive World
Start the engine!
Our first Observable
Creating an Observable from a list
A few more examples
Summary
Chapter 4: Filtering Observables
Filtering a sequence
Let's take what we need
Once and only once
First and last
Skip and SkipLast
ElementAt
Sampling
Timeout
Debounce
Summary
Chapter 5: Transforming Observables
The *map family
Summary
Chapter 6: Combining Observables
Merge
Zip
Join
combineLatest
And, Then, and When
Switch
StartWith
Summary
Chapter 7: Schedulers – Defeating the Android MainThread Issue
StrictMode
Avoiding blocking I/O operations
Schedulers
Nonblocking I/O operations
SubscribeOn and ObserveOn
Handling a long task
Executing a network task
Summary
Chapter 8: REST in Peace – RxJava and Retrofit
The project goal
Retrofit
The app structure
Summary

What You Will Learn

  • Master the Observer pattern and create Observable objects and sequences
  • Convert lists of objects to Observable sequences
  • Change existing methods to reactive asynchronous functions
  • Filter Observable sequences to ensure that only the value you want will reach your functions
  • Transform and manipulate Observable sequences into new sequences
  • Combine, merge, and concatenate Observable sequences to create new sequences
  • Move away from the Android main thread and AsyncTask to learn multithreading and concurrency the easy way with Schedulers
  • Communicate with a remote REST API using Retrofit Observable responses
  • Create your first RxJava-powered Android app

Authors

Table of Contents

Chapter 1: RX – from .NET to RxJava
Microsoft Reactive Extensions
Landing in the Java world – Netflix RxJava
Summary
Chapter 2: Why Observables?
The Observer pattern
The RxJava Observer pattern toolkit
Summary
Chapter 3: Hello Reactive World
Start the engine!
Our first Observable
Creating an Observable from a list
A few more examples
Summary
Chapter 4: Filtering Observables
Filtering a sequence
Let's take what we need
Once and only once
First and last
Skip and SkipLast
ElementAt
Sampling
Timeout
Debounce
Summary
Chapter 5: Transforming Observables
The *map family
Summary
Chapter 6: Combining Observables
Merge
Zip
Join
combineLatest
And, Then, and When
Switch
StartWith
Summary
Chapter 7: Schedulers – Defeating the Android MainThread Issue
StrictMode
Avoiding blocking I/O operations
Schedulers
Nonblocking I/O operations
SubscribeOn and ObserveOn
Handling a long task
Executing a network task
Summary
Chapter 8: REST in Peace – RxJava and Retrofit
The project goal
Retrofit
The app structure
Summary

Book Details

ISBN 139781784399108
Paperback132 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Learning Reactive Programming with Java 8 Book Cover
Learning Reactive Programming with Java 8
$ 35.99
$ 7.20
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Mastering Concurrency Programming with Java 8 Book Cover
Mastering Concurrency Programming with Java 8
$ 43.99
$ 30.80
Learning Java Functional Programming Book Cover
Learning Java Functional Programming
$ 43.99
$ 30.80
Neural Network Programming with Java Book Cover
Neural Network Programming with Java
$ 35.99
$ 7.20
Machine Learning with Spark Book Cover
Machine Learning with Spark
$ 29.99
$ 3.00