Class DeadlineJob

java.lang.Object
org.axonframework.deadline.quartz.DeadlineJob
All Implemented Interfaces:
org.quartz.Job

public class DeadlineJob extends Object implements org.quartz.Job
Quartz job which depicts handling of a scheduled deadline message. The DeadlineMessage and ScopeDescriptor are retrieved from the JobExecutionContext. The components to convert and deliver them are fetched from the SchedulerContext, where the QuartzDeadlineManager put them.

The job data is read before the deadline's unit of work starts. Job data that cannot be read fails the job, which Quartz then does not refire, as in Axon Framework 4.

Since:
3.3
Author:
Milan Savic, Steven van Beelen
  • Field Details

    • JOB_DATA_CONVERTER

      public static final String JOB_DATA_CONVERTER
      The key under which the StoredDeadlineConverter is stored within the SchedulerContext.
    • DEADLINE_DELIVERY

      public static final String DEADLINE_DELIVERY
      The key under which the DeadlineDelivery is stored within the SchedulerContext.
    • REFIRE_IMMEDIATELY_POLICY

      public static final String REFIRE_IMMEDIATELY_POLICY
      The key under which a Predicate is stored within the SchedulerContext. Used to decide whether a job should be 'refired' immediately for a given Throwable.
      See Also:
  • Constructor Details

    • DeadlineJob

      public DeadlineJob()
  • Method Details

    • execute

      public void execute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException
      Specified by:
      execute in interface org.quartz.Job
      Throws:
      org.quartz.JobExecutionException