public static class QuartzEventScheduler.Builder extends Object
QuartzEventScheduler.
The EventJobDataBinder is defaulted to an QuartzEventScheduler.DirectEventJobDataBinder, and the
TransactionManager defaults to a NoTransactionManager.
The Scheduler and EventBus are a hard requirements and as such should be provided.
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
QuartzEventScheduler |
build()
Initializes a
QuartzEventScheduler as specified through this Builder. |
QuartzEventScheduler.Builder |
eventBus(EventBus eventBus)
Sets the
EventBus used to publish events on once the schedule has been met. |
QuartzEventScheduler.Builder |
jobDataBinder(EventJobDataBinder jobDataBinder)
Sets the
EventJobDataBinder instance which reads / writes the event message to publish to the
JobDataMap. |
QuartzEventScheduler.Builder |
scheduler(org.quartz.Scheduler scheduler)
Sets the
Scheduler used for scheduling and triggering purposes of the deadlines. |
QuartzEventScheduler.Builder |
transactionManager(TransactionManager transactionManager)
Sets the
TransactionManager used to build transactions and ties them on event publication. |
protected void |
validate()
Validates whether the fields contained in this Builder are set accordingly.
|
public QuartzEventScheduler.Builder scheduler(org.quartz.Scheduler scheduler)
Scheduler used for scheduling and triggering purposes of the deadlines.scheduler - a Scheduler used for scheduling and triggering purposes of the deadlinespublic QuartzEventScheduler.Builder eventBus(EventBus eventBus)
EventBus used to publish events on once the schedule has been met.eventBus - a EventBus used to publish events on once the schedule has been metpublic QuartzEventScheduler.Builder jobDataBinder(EventJobDataBinder jobDataBinder)
EventJobDataBinder instance which reads / writes the event message to publish to the
JobDataMap. Defaults to QuartzEventScheduler.DirectEventJobDataBinder.jobDataBinder - a EventJobDataBinder instance which reads / writes the event message to publish
to the JobDataMappublic QuartzEventScheduler.Builder transactionManager(TransactionManager transactionManager)
TransactionManager used to build transactions and ties them on event publication. Defaults
to a NoTransactionManager.transactionManager - a TransactionManager used to build transactions and ties them on event
publicationpublic QuartzEventScheduler build()
QuartzEventScheduler as specified through this Builder.QuartzEventScheduler as specified through this Builderprotected void validate()
throws AxonConfigurationException
AxonConfigurationException - if one field is asserted to be incorrect according to the Builder's
specificationsCopyright © 2010–2018. All rights reserved.