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 TypeMethodDescriptionvoid
destroy()
void
init()
void
onIndexFlushRequested
(ClusterEventWrapper wrapper) void
Route 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 requestedSearchIndex
is not supported
-
onIndexFlushRequested
-