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 Summary
FieldsFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTimeoutService
(ExecutionProperties properties, WorkflowRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, org.springframework.scheduling.TaskScheduler scheduler) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.SmartLifecycle
getPhase, stop
-
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 interfaceorg.springframework.context.Lifecycle
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartup
in interfaceorg.springframework.context.SmartLifecycle
-
start
public void start()- Specified by:
start
in interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
-
cleanup
protected void cleanup() -
getPause
protected long getPause() -
isStarted
public boolean isStarted()
-