内容简介:
Learn how to use RxJava and its reactive Observables to build fast, concurrent, and powerful applications through detailed examples
About This Book
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
Who This Book Is For
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.
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
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.
作者简介:
Nickolay Tsvetinov is a professional all-round web developer at TransportAPI―Britain's first comprehensive open platform for transport solutions. During his career as a software developer, he experienced both good and bad and played with most of the popular programming languages―from C and Java to Ruby and JavaScript. For the last 3-4 years, he's been creating and maintaining single-page applications (SPA) and the backend API architectures that serve them. He is a fan of open source software, Rails, Vim, Sinatra, Ember.js, Node.js, and Nintendo. He was an unsuccessful musician and poet, but he is a successful husband and father. His area of interest and expertise includes the declarative/functional and reactive programming that resulted in the creation of ProAct.js (http://proactjs.com), which is a library that augments the JavaScript language and turns it into a reactive language.