Class IndexFlushEventDispatcher
java.lang.Object
com.atlassian.confluence.impl.search.IndexFlushEventDispatcher
Listens to RequestIndexFlushEvents and routes the flush request to the correct
IndexFlushScheduler- Since:
- 7.9.0
-
Constructor Summary
ConstructorsConstructorDescriptionIndexFlushEventDispatcher(Map<SearchIndex, IndexFlushScheduler> indexFlushSchedulers, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voidinit()voidonIndexFlushRequested(ClusterEventWrapper wrapper) voidRoute flush request to the correctIndexFlushScheduler
-
Constructor Details
-
IndexFlushEventDispatcher
public IndexFlushEventDispatcher(Map<SearchIndex, IndexFlushScheduler> indexFlushSchedulers, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar)
-
-
Method Details
-
init
@PostConstruct public void init() -
destroy
@PreDestroy public void destroy() -
onIndexFlushRequested
@EventListener public void onIndexFlushRequested(DefaultIndexFlushRequester.RequestIndexFlushEvent event) Route flush request to the correctIndexFlushScheduler- Throws:
IllegalArgumentException- if the requestedSearchIndexis not supported
-
onIndexFlushRequested
-