java.lang.Object
org.axonframework.eventhandling.scheduling.quartz.FireEventJob
All Implemented Interfaces:
org.quartz.Job

public class FireEventJob extends Object implements org.quartz.Job
Quartz Job that publishes an event on an Event Bus. The event is retrieved from the JobExecutionContexts JobDataMap. Both the EventBus and EventJobDataBinder are fetched from the scheduler context.
Since:
0.7
Author:
Allard Buijze
See Also:
  • Field Details

    • EVENT_JOB_DATA_BINDER_KEY

      public static final String EVENT_JOB_DATA_BINDER_KEY
      The key used to locate the EventJobDataBinder in the scheduler context.
    • EVENT_BUS_KEY

      public static final String EVENT_BUS_KEY
      The key used to locate the Event Bus in the scheduler context.
    • TRANSACTION_MANAGER_KEY

      public static final String TRANSACTION_MANAGER_KEY
      The key used to locate the optional TransactionManager in the scheduler context.
  • Constructor Details

    • FireEventJob

      public FireEventJob()
  • 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