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 TransactionManager and ScopeAware components are fetched from SchedulerContext.
Since:
3.3
Author:
Milan Savic, Steven van Beelen
  • Field Details

    • TRANSACTION_MANAGER_KEY

      public static final String TRANSACTION_MANAGER_KEY
      The key under which the TransactionManager is stored within the SchedulerContext.
    • SCOPE_AWARE_RESOLVER

      public static final String SCOPE_AWARE_RESOLVER
      The key under which the ScopeAwareProvider is stored within the SchedulerContext.
    • JOB_DATA_SERIALIZER

      public static final String JOB_DATA_SERIALIZER
      The key under which the Serializer is stored within the SchedulerContext.
    • SPAN_FACTORY

      public static final String SPAN_FACTORY
      The key under which the DeadlineManagerSpanFactory is stored within the SchedulerContext.
    • HANDLER_INTERCEPTORS

      public static final String HANDLER_INTERCEPTORS
      The key under which the MessageHandlerInterceptors are 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 decided 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