From the course: Java EE 8 Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Reactive features - Java EE Tutorial
From the course: Java EE 8 Essential Training
Reactive features
- [Instructor] In Java EE 8, the JAX-RS client receives support for the Reactive programming style which provides developers with a more succinct way of handling asynchronous calls. Under the Reactive approach, we avoid the use of callbacks instead opting to use a completion stage that allows a chain of stages to be completed asynchronously. Let's take a look at using the Reactive programming style by working with the JAX-RS Reactive client. So we won't need to change anything within our resource. We're going to call the asynchronous resource method that we created previously but if we take a look at our InventoryService, you'll notice that we added a new method, the reactiveGetQuantityMethod and it returns an object of type completion stage which is generically typed to specify the InventoryItem as the generic parameter. The completion stage allows us to chain different calls together asynchronously. If you take a…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Rest overview1m 58s
-
(Locked)
JAX-RS overview5m
-
(Locked)
JAX-RS project setup3m 11s
-
(Locked)
Creating a resource5m 16s
-
(Locked)
JAX-RS client posts7m 22s
-
(Locked)
JAX-RS client gets4m 23s
-
(Locked)
URI template parameters2m 49s
-
(Locked)
Asynchronous features7m 51s
-
(Locked)
Reactive features5m 31s
-
(Locked)
Server-Sent Events6m 16s
-
(Locked)
-
-
-
-
-
-