Promises in Java: Using Promises to Recover from Failure

Session details
Speaker(s): 
Experience level: 
Intermediate
Session Track: 
Session Type: 
Standard
Your Vote
Community Voting: 
0
Your rating: None

Your vote will help the program committee know the favorite proposals

Log in here to vote

Communications is error prone. Connections time out, servers fail to respond, returned data can be incomplete or corrupted. Bnd, the OSGi tooling project, has an HttpClient class which is used for communications including with remote repositories like Maven/Nexus and P2 repositories. The Bnd CI builds started having significant failures due to communications problems with the Eclipse download servers, so with some light code restructuring, I was able to add retry support to HttpClient using the Promises package from OSGi. This session will take a look at the Promises package and how it was easily used to recover from communications failures.

Objective of the presentation: 
Provide an overview of Promises in Java and show how powerful they are for solving complex issues with little code.
Attendee pre-requisites - If none, enter "N/A": 
Basic understanding of Java programming.

Our Sponsors

Our Other Events

Eclipse events are hosted all over the world!

  • EclipseCon Europe 2019