Class DeadlineJob
java.lang.Object
org.axonframework.deadline.quartz.DeadlineJob
- All Implemented Interfaces:
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis binder is used to map deadline message and deadline scopes to the job data and vice versa. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe key under which theDeadlineDeliveryis stored within theSchedulerContext.static final StringThe key under which theStoredDeadlineConverteris stored within theSchedulerContext.static final StringThe key under which aPredicateis stored within theSchedulerContext. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
JOB_DATA_CONVERTER
The key under which theStoredDeadlineConverteris stored within theSchedulerContext. -
DEADLINE_DELIVERY
The key under which theDeadlineDeliveryis stored within theSchedulerContext. -
REFIRE_IMMEDIATELY_POLICY
The key under which aPredicateis stored within theSchedulerContext. Used to decide whether a job should be 'refired' immediately for a givenThrowable.- See Also:
-
-
Constructor Details
-
DeadlineJob
public DeadlineJob()
-
-
Method Details
-
execute
public void execute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException - Specified by:
executein interfaceorg.quartz.Job- Throws:
org.quartz.JobExecutionException
-