Class AS4DuplicateCleanupJob

java.lang.Object
com.helger.schedule.job.AbstractJob
com.helger.web.scope.util.AbstractScopeAwareJob
com.helger.phase4.incoming.mgr.AS4DuplicateCleanupJob
All Implemented Interfaces:
com.helger.quartz.IJob

@DisallowConcurrentExecution public final class AS4DuplicateCleanupJob extends com.helger.web.scope.util.AbstractScopeAwareJob
A special job, that removes all entries
Author:
Philip Helger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    onExecute(com.helger.quartz.JobDataMap aJobDataMap, com.helger.quartz.IJobExecutionContext aContext)
     
    static com.helger.quartz.TriggerKey
    scheduleMe(long nDisposalMinutes)
    Start a job that runs every minute, that removes all messages older than a certain time from duplication check.
    static void
    unschedule(com.helger.quartz.TriggerKey aTriggerKey)
     

    Methods inherited from class com.helger.web.scope.util.AbstractScopeAwareJob

    afterExecute, afterExecuteInScope, beforeExecute, beforeExecuteInScope, createMockHttpServletRequest, createMockHttpServletResponse

    Methods inherited from class com.helger.schedule.job.AbstractJob

    exceptionCallbacks, execute, triggerCustomExceptionHandler

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AS4DuplicateCleanupJob

      public AS4DuplicateCleanupJob()
  • Method Details

    • onExecute

      protected void onExecute(@Nonnull com.helger.quartz.JobDataMap aJobDataMap, @Nonnull com.helger.quartz.IJobExecutionContext aContext) throws com.helger.quartz.JobExecutionException
      Specified by:
      onExecute in class com.helger.schedule.job.AbstractJob
      Throws:
      com.helger.quartz.JobExecutionException
    • scheduleMe

      @Nullable public static com.helger.quartz.TriggerKey scheduleMe(long nDisposalMinutes)
      Start a job that runs every minute, that removes all messages older than a certain time from duplication check. If the job is already scheduled, it cannot be scheduled again.
      Parameters:
      nDisposalMinutes - Messages older than this number of minutes will not be checked for duplicates. Must be > 0.
      Returns:
      null if no job was scheduled, the trigger key of the respective job otherwise.
    • unschedule

      public static void unschedule(@Nullable com.helger.quartz.TriggerKey aTriggerKey)