Using tasks means also being able to define when they should be executed. This recipe is all about this topic, and also about getting the returning results whenever they return.
Scheduling asynchronous tasks with returning results
Getting ready
Let's first add our Java EE 8 dependency:
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>8.0</version>
<scope>provided</scope>
</dependency>
How to do it...
- Let's first...