Package com.helger.phase4.incoming.mgr
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonExecute(com.helger.quartz.JobDataMap aJobDataMap, com.helger.quartz.IJobExecutionContext aContext) static com.helger.quartz.TriggerKeyscheduleMe(long nDisposalMinutes) Start a job that runs every minute, that removes all messages older than a certain time from duplication check.static voidunschedule(com.helger.quartz.TriggerKey aTriggerKey) Methods inherited from class com.helger.web.scope.util.AbstractScopeAwareJob
afterExecute, afterExecuteInScope, beforeExecute, beforeExecuteInScope, createMockHttpServletRequest, createMockHttpServletResponseMethods inherited from class com.helger.schedule.job.AbstractJob
exceptionCallbacks, execute, triggerCustomExceptionHandler
-
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:
onExecutein classcom.helger.schedule.job.AbstractJob- Throws:
com.helger.quartz.JobExecutionException
-
scheduleMe
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:
nullif no job was scheduled, the trigger key of the respective job otherwise.
-
unschedule
-