Package net.solarnetwork.central.biz
Class AppWarmUpManager
java.lang.Object
net.solarnetwork.central.biz.AppWarmUpManager
- All Implemented Interfaces:
net.solarnetwork.service.ServiceLifecycleObserver
public class AppWarmUpManager
extends Object
implements net.solarnetwork.service.ServiceLifecycleObserver
Component to "warm up" the application, primarily to get lazily-loaded
infrastructure loaded so the application is faster to respond to requests.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AppWarmUpManager
Constructor.- Parameters:
warmUpTasks- the warm-up tasks to manage
-
-
Method Details
-
serviceDidShutdown
public void serviceDidShutdown()- Specified by:
serviceDidShutdownin interfacenet.solarnetwork.service.ServiceLifecycleObserver
-
serviceDidStartup
public void serviceDidStartup()- Specified by:
serviceDidStartupin interfacenet.solarnetwork.service.ServiceLifecycleObserver
-