Constructor JobExecutor
- Namespace
- MailFathom.Application.Jobs.Execution
- Assembly
- MailFathom.Application.dll
JobExecutor(IJobStore, JobHandlerRegistry, IJobFailureClassifier, JobExecutionSettings, TimeProvider)
Initializes the executor from the queue it writes to and the bounds it runs under.
public JobExecutor(IJobStore store, JobHandlerRegistry handlers, IJobFailureClassifier failureClassifier, JobExecutionSettings settings, TimeProvider timeProvider)
Parameters
storeIJobStoreRenews, completes, retries, dead-letters, and releases the lease this attempt holds.
handlersJobHandlerRegistryAnswers which handler runs the job's type.
failureClassifierIJobFailureClassifierDecides whether a failure is worth attempting again, and names it safely.
settingsJobExecutionSettingsThe execution timeout, the lease duration, the attempt bound, and the retry delays.
timeProviderTimeProviderTimes the attempt, the timeout, the renewal interval, and the next attempt's instant.
Exceptions
- ArgumentNullException
Thrown when a collaborator is null.