Forum Stats

  • 3,733,080 Users
  • 2,246,690 Discussions


Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Asynchronous Programming in Java 8: How to Use CompletableFuture

Laura Engin
Laura Engin Member Posts: 130 Green Ribbon
edited April 2016 in Social Groups

By Jose Paumard, Assistant Professor at the University Paris 13

Java 8 saw the introduction of a new API to handle asynchronous patterns. This API is built on two elements: the CompletionStage interface and the CompletableFuture class. This presentation aims to explain how the patterns introduced by this interface and it implementing class are new to the Java platform, and how they fill the gap in the old Future patterns.

The different models are precisely presented: how to create complex asynchronous processing pipelines, how to deal with exceptions, how to test such a complex code. Many examples are shown, from the classical question of remote service access to testing asynchronous REST Service. We will show the new patterns introduced to chain asynchronous operations and how to deal with special threads, especially in GUI environments. We will also describe new ideas in CDI: asynchronous events.

Additional Sources

Sign In or Register to comment.