Class DefaultTimeoutService

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

public class DefaultTimeoutService extends Object implements org.springframework.context.SmartLifecycle
ClusterService responsible for interval polling workflows that have timed out and marking them as failed.
  • Field Details

    • started

      protected boolean started
  • Constructor Details

    • DefaultTimeoutService

      public DefaultTimeoutService(ExecutionProperties properties, WorkflowRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, org.springframework.scheduling.TaskScheduler scheduler)
  • 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()
    • getPause

      protected long getPause()
    • isStarted

      public boolean isStarted()