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
  • Constructor Details

  • Method Details

    • doExecute

      protected void doExecute(org.quartz.JobExecutionContext context, JobDataMapReader jobDataMapReader) throws org.quartz.JobExecutionException
      Specified by:
      doExecute in class AbstractJob
      Throws:
      org.quartz.JobExecutionException
    • setValidity

      @Value("${nice2.optional.onlinepayment.payrexxGatewayValidity}") public void setValidity(int validity)