Class SandboxNotificationPruneService

java.lang.Object
com.broadleafcommerce.sandbox.service.SandboxNotificationPruneService
All Implemented Interfaces:
org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

public class SandboxNotificationPruneService extends Object implements org.springframework.context.SmartLifecycle
This service is intended to be "singleton" on a cluster level It will be run its job - clean up through SandboxNotificationPruneRepository every 23 hours
  • Field Details

  • Constructor Details

    • SandboxNotificationPruneService

      public SandboxNotificationPruneService(SandboxNotificationPruneRepository repository, org.springframework.scheduling.TaskScheduler scheduler, com.broadleafcommerce.common.extension.data.DataRouteSupporting route)
  • Method Details

    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle
    • isAutoStartup

      public boolean isAutoStartup()
      Specified by:
      isAutoStartup in interface org.springframework.context.SmartLifecycle
    • start

      public void start()
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • cleanup

      protected void cleanup()
      On interval, remove "stale" expired notification states
    • isStarted

      public boolean isStarted()