Skip to content

Warm Up

Randgalt edited this page Oct 21, 2012 · 7 revisions

In addition to the standard lifecycle annotations @PostConstruct and @PreDestroy, Governator adds: @WarmUp

Methods annotated with @WarmUp will be called in parallel (using the Java Fork-Join framework) when LifecycleManager.start() is called. Object dependencies are respected – i.e. if object A is dependent on object B and both have warm up methods, object A’s warm up method will not be executed until object B’s warm up method completes.

An alternate version of LifecycleManager.start() can be used to limit the amount of time allowed for warm up methods to complete.