Book description
Learn how to use RxJava and its reactive Observables to build fast, concurrent, and powerful applications through detailed examples
Learn about Java 8's lambdas and what reactive programming is all about, and how these aspects are utilized by RxJava
Build fast and concurrent applications with ease, without the complexity of Java's concurrent API and shared states
Explore a wide variety of code examples to easily get used to all the features and tools provided by RxJava
In Detail
Whether you are a Java expert or at a beginner level, you'll benefit from this book, because it will teach you a brand new way of coding and thinking.
The book starts with an explanation of what reactive programming is, why it is so appealing, and how we can integrate it in to Java. It continues by introducing the new Java 8 syntax features, such as lambdas and function references, and some functional programming basics. From this point on, the book focuses on RxJava in depth. It goes through creating Observables, transforming, filtering, and combining them, and concurrency and testing to finish with extending the library itself.
This book is a definite tutorial in RxJava filled with a lot of well-described examples. It explains reactive programming concepts in plain and readable language, without scientific formulas and terms.
What You Will Learn
Discover what reactive programming is and how you can benefit from it
Get to grips with the new functional features of Java 8 and some functional theory
Create RxJava Observable instances from virtually any data source
Transform, filter, and accumulate your data using various RxJava operators
Combine multiple data sources in one dataset, using custom logic
Write concurrent programs with ease, scheduling actions on various workers
Learn about unit testing asynchronous RxJava logic
Extend RxJava by writing your own operators and factory methods
Table of contents
-
Learning Reactive Programming with Java 8
- Table of Contents
- Learning Reactive Programming with Java 8
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. An Introduction to Reactive Programming
- 2. Using the Functional Constructions of Java 8
- 3. Creating and Connecting Observables, Observers, and Subjects
- 4. Transforming, Filtering, and Accumulating Your Data
- 5. Combinators, Conditionals, and Error Handling
- 6. Using Concurrency and Parallelism with Schedulers
-
7. Testing Your RxJava Application
- Testing using simple subscription
- The BlockingObservable class
- The aggregate operators and the BlockingObservable class
- Testing with the aggregate operators and the BlockingObservable class
- Using the TestSubscriber class for in-depth testing
- Testing asynchronous Observable instances with the help of the TestScheduler class
- Summary
- 8. Resource Management and Extending RxJava
- Index
Product information
- Title: Learning Reactive Programming with Java 8
- Author(s):
- Release date: June 2015
- Publisher(s): Packt Publishing
- ISBN: 9781785288722
You might also like
book
Introducing Java 8
Java SE 8 is perhaps the largest change to Java in its history, led by its …
book
Building Reactive Microservices in Java
If you’re investigating ways to build distributed microservices, perhaps to replace an unwieldy monolithic enterprise application, …
video
Hands-On Functional Programming with Java
Functional programming, a popular programming paradigm used to simplify many tasks, will help you write flexible …
video
Java Performance and Instrumentation for the Well-Grounded Java Developer
A deep dive into Java performance and instrumentation.