public class SimpleEventSchedulerFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<SimpleEventScheduler>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware
QuartzEventScheduler
.Constructor and Description |
---|
SimpleEventSchedulerFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
SimpleEventScheduler |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setEventBus(EventBus eventBus)
Sets the eventBus that scheduled events should be published to.
|
void |
setExecutorService(ScheduledExecutorService executorService)
Sets the ExecutorService implementation that monitors the triggers and provides the Threads to publish events.
|
void |
setTransactionDefinition(org.springframework.transaction.TransactionDefinition transactionDefinition)
The TransactionDefinition to use by the transaction manager.
|
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
Sets the transaction manager that manages the transaction around the publication of an event.
|
public SimpleEventScheduler getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean<SimpleEventScheduler>
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<SimpleEventScheduler>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<SimpleEventScheduler>
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
public void setEventBus(EventBus eventBus)
eventBus
- The EventBus to publish scheduled events topublic void setExecutorService(ScheduledExecutorService executorService)
executorService
- The executor service providing the scheduling and execution resourcespublic void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
transactionManager
- the transaction manager that takes care of transactions around event publicationpublic void setTransactionDefinition(org.springframework.transaction.TransactionDefinition transactionDefinition)
DefaultTransactionDefinition
.
Is ignored if no transaction manager is configured.transactionDefinition
- the TransactionDefinition to use by the transaction managerpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
Copyright © 2010–2020. All rights reserved.