public static class QuartzEventScheduler.Builder extends Object
QuartzEventScheduler.
 
 The EventJobDataBinder is defaulted to a QuartzEventScheduler.DirectEventJobDataBinder using the configured Serializer, and the TransactionManager defaults to a NoTransactionManager. Note that if the
 Serializer is not set, the configuration expects the EventJobDataBinder to be set.
 
 The Scheduler and EventBus are 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 | 
serializer(Serializer serializer)
Sets the  
Serializer used by the EventJobDataBinder. | 
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.Builder serializer(Serializer serializer)
Serializer used by the EventJobDataBinder. The EventJobDataBinder uses the
 Serializer to de-/serialize the scheduled event.serializer - a Serializer used by the EventJobDataBinder when serializing eventspublic 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–2023. All rights reserved.