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 TransactionManager and
ScopeAware components are fetched from SchedulerContext.- 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 theMessageHandlerInterceptors are stored within theSchedulerContext.static final StringThe key under which theSerializeris stored within theSchedulerContext.static final StringThe key under which aPredicateis stored within theSchedulerContext.static final StringThe key under which theScopeAwareProvideris stored within theSchedulerContext.static final StringThe key under which theDeadlineManagerSpanFactoryis stored within theSchedulerContext.static final StringThe key under which theTransactionManageris stored within theSchedulerContext. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TRANSACTION_MANAGER_KEY
The key under which theTransactionManageris stored within theSchedulerContext. -
SCOPE_AWARE_RESOLVER
The key under which theScopeAwareProvideris stored within theSchedulerContext. -
JOB_DATA_SERIALIZER
The key under which theSerializeris stored within theSchedulerContext. -
SPAN_FACTORY
The key under which theDeadlineManagerSpanFactoryis stored within theSchedulerContext. -
HANDLER_INTERCEPTORS
The key under which theMessageHandlerInterceptors are stored within theSchedulerContext. -
REFIRE_IMMEDIATELY_POLICY
The key under which aPredicateis stored within theSchedulerContext. Used to decided 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
-