Class DefaultPruneService
java.lang.Object
com.broadleafcommerce.workflow.service.DefaultPruneService
- All Implemented Interfaces:
org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
public class DefaultPruneService
extends Object
implements org.springframework.context.SmartLifecycle
ClusterService responsible for interval polling workflows whose retention period have
expired and deleting them.-
Field Summary
FieldsFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionDefaultPruneService(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, waitMethods inherited from interface org.springframework.context.SmartLifecycle
getPhase, stop
-
Field Details
-
started
protected boolean started
-
-
Constructor Details
-
DefaultPruneService
public DefaultPruneService(ExecutionProperties properties, WorkflowRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, org.springframework.scheduling.TaskScheduler scheduler)
-
-
Method Details
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-
start
public void start()- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
cleanup
protected void cleanup() -
getPause
protected long getPause() -
isStarted
public boolean isStarted()
-