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 Details

    • AppWarmUpManager

      public AppWarmUpManager(Iterable<AppWarmUpTask> warmUpTasks)
      Constructor.
      Parameters:
      warmUpTasks - the warm-up tasks to manage
  • Method Details

    • serviceDidShutdown

      public void serviceDidShutdown()
      Specified by:
      serviceDidShutdown in interface net.solarnetwork.service.ServiceLifecycleObserver
    • serviceDidStartup

      public void serviceDidStartup()
      Specified by:
      serviceDidStartup in interface net.solarnetwork.service.ServiceLifecycleObserver