Learning Reactive Programming with Java 8

 
 
Packt Publishing Limited
  • 1. Auflage
  • |
  • erschienen am 24. Juni 2015
  • |
  • 182 Seiten
 
E-Book | ePUB mit Adobe DRM | Systemvoraussetzungen
978-1-78528-250-8 (ISBN)
 
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.
  • Englisch
  • Birmingham
  • |
  • Großbritannien
978-1-78528-250-8 (9781785282508)
1785282506 (1785282506)
weitere Ausgaben werden ermittelt
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.
  • Cover
  • Copyright
  • Credits
  • About the Author
  • About the Reviewers
  • www.PacktPub.com
  • Table of Contents
  • Preface
  • Chapter 1: An Introduction to Reactive Programming
  • What is reactive programming?
  • Why should we be reactive?
  • Introducing RxJava
  • Downloading and setting up RxJava
  • Comparing the iterator pattern and the RxJava Observable
  • Implementing the reactive sum
  • Summary
  • Chapter 2: Using the Functional Constructions of Java 8
  • Lambdas in Java 8
  • Introducing the new syntax and semantics
  • Functional interfaces in Java 8 and RxJava
  • Implementing the reactive sum example with lambdas
  • Pure functions and higher order functions
  • Pure functions
  • Higher order functions
  • RxJava and functional programming
  • Summary
  • Chapter 3: Creating and Connecting Observables, Observers, and Subjects
  • The Observable.from method
  • The Observable.just method
  • Other Observable factory methods
  • The Observable.create method
  • Subscribing and unsubscribing
  • Hot and cold Observable instances
  • The ConnectableObservable class
  • The Subject instances
  • Summary
  • Chapter 4: Transforming, Filtering, and Accumulating Your Data
  • Observable transformations
  • Transformations with the various flatMap operators
  • Grouping items
  • Additional useful transformation operators
  • Filtering data
  • Accumulating data
  • Summary
  • Chapter 5: Combinators, Conditionals, and Error Handling
  • Combining the Observable instances
  • The zip operator
  • The combineLatest operator
  • The merge operator
  • The concat operator
  • The conditional operators
  • The amb operator
  • The takeUntil(), takeWhile(), skipUntil(), and skipWhile() conditional operators
  • The defaultIfEmpty( ) operator
  • Handling errors
  • The return and resume operators
  • The retrying technique
  • An HTTP client example
  • Summary
  • Chapter 6: Using Concurrency and Parallelism with Schedulers
  • RxJava's schedulers
  • Debugging Observables and their schedulers
  • The interval Observable and its default scheduler
  • Types of schedulers
  • The Schedulers.immediate scheduler
  • The Schedulers.trampoline scheduler
  • The Schedulers.newThread scheduler
  • The Schedulers.computation scheduler
  • The Schedulers.io scheduler
  • The Schedulers.from(Executor) method
  • Combining Observables and schedulers
  • The Observable subscribeOn(Scheduler) method
  • The Observable observeOn(Scheduler) operator
  • Parallelism
  • Buffering, throttling, and debouncing
  • Throttling
  • Debouncing
  • The buffer and window operators
  • The backpressure operators
  • Summary
  • Chapter 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
  • Chapter 8: Resource Management and Extending RxJava
  • Resource management
  • Introducing the Observable.using method
  • Caching data with Observable.cache
  • Creating custom operators with lift
  • Composing multiple operators with the Observable.compose operator
  • Summary
  • Index

Dateiformat: EPUB
Kopierschutz: Adobe-DRM (Digital Rights Management)

Systemvoraussetzungen:

Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat EPUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Weitere Informationen finden Sie in unserer E-Book Hilfe.


Download (sofort verfügbar)

37,41 €
inkl. 19% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe DRM
siehe Systemvoraussetzungen
E-Book bestellen

Unsere Web-Seiten verwenden Cookies. Mit der Nutzung dieser Web-Seiten erklären Sie sich damit einverstanden. Mehr Informationen finden Sie in unserem Datenschutzhinweis. Ok