org.axonframework.eventhandling.scheduling.quartz
Class FireEventJob

java.lang.Object
  extended by 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:
EventJobDataBinder

Field Summary
static String EVENT_BUS_KEY
          The key used to locate the Event Bus in the scheduler context.
static String EVENT_JOB_DATA_BINDER_KEY
          The key used to locate the EventJobDataBinder in the scheduler context.
static String UNIT_OF_WORK_FACTORY_KEY
          The key used to locate the optional EventTriggerCallback in the scheduler context.
 
Constructor Summary
FireEventJob()
           
 
Method Summary
 void execute(org.quartz.JobExecutionContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.


UNIT_OF_WORK_FACTORY_KEY

public static final String UNIT_OF_WORK_FACTORY_KEY
The key used to locate the optional EventTriggerCallback in the scheduler context.

Constructor Detail

FireEventJob

public FireEventJob()
Method Detail

execute

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


Copyright © 2010-2016. All Rights Reserved.