Class DefaultLockPruneService

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

public class DefaultLockPruneService extends Object implements org.springframework.context.SmartLifecycle
ClusterService responsible for interval polling workflows whose retention period have expired and deleting them.
  • Field Details

    • started

      protected boolean started
  • Constructor Details

  • 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()
      Remove expired locks in batches.
    • getPause

      protected long getPause()
      Get a random pause interval between the min and max subscription lock poll interval.
      Returns:
      the pause interval
    • isStarted

      public boolean isStarted()