Package com.flowable.indexing.job
Class AsyncHistoryExecutorStarter
java.lang.Object
com.flowable.indexing.job.AsyncHistoryExecutorStarter
- All Implemented Interfaces:
java.util.EventListener
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
,org.springframework.core.Ordered
public class AsyncHistoryExecutorStarter
extends java.lang.Object
implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.core.Ordered, org.springframework.context.ApplicationContextAware
This starter is needed because the async history executor needs to be started after all engines have been initialized.
-
Field Summary
Fields Modifier and Type Field Description protected boolean
activate
protected org.springframework.context.ApplicationContext
applicationContext
protected org.flowable.job.service.impl.asyncexecutor.AsyncExecutor
asyncHistoryExecutor
-
Constructor Summary
Constructors Constructor Description AsyncHistoryExecutorStarter(boolean activate, org.flowable.job.service.impl.asyncexecutor.AsyncExecutor asyncHistoryExecutor)
-
Method Summary
Modifier and Type Method Description int
getOrder()
void
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Field Details
-
activate
protected boolean activate -
asyncHistoryExecutor
protected org.flowable.job.service.impl.asyncexecutor.AsyncExecutor asyncHistoryExecutor -
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
AsyncHistoryExecutorStarter
public AsyncHistoryExecutorStarter(boolean activate, org.flowable.job.service.impl.asyncexecutor.AsyncExecutor asyncHistoryExecutor)
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-