Class CleanupNotProcessedTransactionsBatchJob
java.lang.Object
ch.tocco.nice2.tasks.api.quartz.AbstractJob
ch.tocco.nice2.tasks.api.quartz.AbstractInterruptableJob
ch.tocco.nice2.optional.onlinepayment.impl.batchjob.CleanupNotProcessedTransactionsBatchJob
- All Implemented Interfaces:
org.quartz.InterruptableJob,org.quartz.Job
@DisallowConcurrentExecution
public class CleanupNotProcessedTransactionsBatchJob
extends AbstractInterruptableJob
Cleanup Payrexx_transactions that are:
- older than nice2.optional.onlinepayment.payrexxGatewayValidity (minutes)
- have state "waiting"
Cleanup means:
- Update state on Payrexx_transaction
-- Try to get an updated state from payrexx
-- If it is still "waiting" or if no state from payrexx could be resolved, set it to "canceled"
- Delete payrexx gateway
-
Field Summary
Fields inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractJob
businessUnitManager, l10N, logger, principalManager, securityManager -
Constructor Summary
ConstructorsConstructorDescriptionCleanupNotProcessedTransactionsBatchJob(PersistenceService persistenceService, QueryBuilderFactory queryBuilderFactory, PayrexxService payrexxService, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(org.quartz.JobExecutionContext context, JobDataMapReader jobDataMapReader) voidsetValidity(int validity) Methods inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractInterruptableJob
interrupt, isCancelledMethods inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractJob
execute, getProgress, getProgressLog, setBusinessUnitManager, setConverters, setL10N, setLogger, setPrincipalManager, setProgressPersistenceManager, setRuleProviderService, setSecurityManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.quartz.Job
execute
-
Constructor Details
-
CleanupNotProcessedTransactionsBatchJob
public CleanupNotProcessedTransactionsBatchJob(PersistenceService persistenceService, QueryBuilderFactory queryBuilderFactory, PayrexxService payrexxService, org.slf4j.Logger log)
-
-
Method Details
-
doExecute
protected void doExecute(org.quartz.JobExecutionContext context, JobDataMapReader jobDataMapReader) throws org.quartz.JobExecutionException - Specified by:
doExecutein classAbstractJob- Throws:
org.quartz.JobExecutionException
-
setValidity
@Value("${nice2.optional.onlinepayment.payrexxGatewayValidity}") public void setValidity(int validity)
-