Methods annotated with @WarmUp will be called in parallel (using the Java Fork-Join framework). Object dependencies are respected – i.e. given:
Warm up methods are use for things such as cache warming, etc. i.e. tasks that happen after an object is constructed, that take some time and can execute in parallel.
Lifecycle Warm Up is available on the Maven Central repo, you just need to add the dependency below in your pom.xml file:
<dependencies> ... <dependency> <groupId>org.apache.onami.lifecycle</groupId> <artifactId>org.apache.onami.lifecycle.warmup</artifactId> <version>0.2.0-SNAPSHOT</version> </dependency> ... </dependencies>