Package com.helger.photon.core.job.smtp
Class FailedMailResendJob
java.lang.Object
com.helger.schedule.job.AbstractJob
com.helger.web.scope.util.AbstractScopeAwareJob
com.helger.photon.core.job.smtp.FailedMailResendJob
- All Implemented Interfaces:
com.helger.quartz.IJob
@DisallowConcurrentExecution
public final class FailedMailResendJob
extends com.helger.web.scope.util.AbstractScopeAwareJob
A Quartz job, that tries to re-send failed mails.
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
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
-
Constructor Details
-
FailedMailResendJob
public FailedMailResendJob()Public no argument constructor must be available.
-
-
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 classcom.helger.schedule.job.AbstractJob
- Throws:
com.helger.quartz.JobExecutionException
-
schedule
@Nonnull public static com.helger.quartz.TriggerKey schedule(@Nonnull com.helger.quartz.SimpleScheduleBuilder aScheduleBuilder) - Parameters:
aScheduleBuilder
- The schedule builder to be used. May not benull
. Example:SimpleScheduleBuilder.repeatMinutelyForever (60)
- Returns:
- The created trigger key for further usage. Never
null
.
-