@Component(value="blAbandonedProcessWorker") @Scope(value="prototype") @Lazy public class AbandonedProcessWorkerImpl extends AbstractConsumerWorker implements ScheduledDeployManagerAware
Modifier and Type | Field and Description |
---|---|
protected int |
abandonedHandleThresholdSeconds |
protected int |
abandonedPurgeThresholdSeconds |
protected boolean |
allowRetry |
protected ScheduledDeployManager |
deployManager |
protected IncognitoEnvironmentDetector |
detector |
protected ProcessDao |
processDao |
protected org.springframework.context.ApplicationEventPublisher |
publisher |
protected org.springframework.transaction.PlatformTransactionManager |
transactionManager |
protected org.broadleafcommerce.common.util.StreamingTransactionCapableUtil |
transUtil |
Constructor and Description |
---|
AbandonedProcessWorkerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
execute(org.quartz.JobExecutionContext jobExecutionContext) |
int |
getAbandonedHandleThresholdSeconds()
The quantity of time for which a ProcessStatus must be abandoned (i.e.
|
int |
getAbandonedPurgeThresholdSeconds()
The quantity of time for which a ProcessStatus must be archived before it is a candidate for deletion.
|
protected void |
handleAbandonedProcesses() |
void |
init() |
protected void |
performAdditionalCleanup() |
protected void |
purgeOldProcesses() |
void |
setScheduledDeployManager(ScheduledDeployManager deployManager) |
populateSystemEvents
protected org.broadleafcommerce.common.util.StreamingTransactionCapableUtil transUtil
protected org.springframework.transaction.PlatformTransactionManager transactionManager
protected ProcessDao processDao
protected IncognitoEnvironmentDetector detector
protected ScheduledDeployManager deployManager
@Autowired protected org.springframework.context.ApplicationEventPublisher publisher
@Value(value="${process.abandoned.handle.threshold.seconds:60}") protected int abandonedHandleThresholdSeconds
@Value(value="${process.abandoned.purge.threshold.seconds:86400}") protected int abandonedPurgeThresholdSeconds
@Value(value="${process.abandoned.allow.retry:true}") protected boolean allowRetry
@PostConstruct public void init()
public void execute(org.quartz.JobExecutionContext jobExecutionContext)
execute
in interface ConsumeWorker
public void setScheduledDeployManager(ScheduledDeployManager deployManager)
setScheduledDeployManager
in interface ScheduledDeployManagerAware
protected void purgeOldProcesses()
protected void handleAbandonedProcesses()
protected void performAdditionalCleanup()
public int getAbandonedHandleThresholdSeconds()
ProcessStatus.getLastUpdated()
)
before it is a candidate for abandoned handling. The default value is 60 seconds. Handling generally takes the form
of an attempt to resume the process, but can really be any operation that makes sense for rectifying a process that
has been abandoned for any reason. See HandleAbandonedProcessEvent
for more information on creating listeners to handle abandoned processes.public int getAbandonedPurgeThresholdSeconds()
Copyright © 2017. All rights reserved.