Class FireEventJob
java.lang.Object
org.axonframework.eventhandling.scheduling.quartz.FireEventJob
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe key used to locate the Event Bus in the scheduler context.static final StringThe key used to locate theEventJobDataBinderin the scheduler context.static final StringThe key used to locate the optional TransactionManager in the scheduler context. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
EVENT_JOB_DATA_BINDER_KEY
The key used to locate theEventJobDataBinderin the scheduler context. -
EVENT_BUS_KEY
The key used to locate the Event Bus in the scheduler context. -
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:
executein interfaceorg.quartz.Job- Throws:
org.quartz.JobExecutionException
-