Class IndexFlushEventDispatcher
- java.lang.Object
-
- com.atlassian.confluence.impl.search.IndexFlushEventDispatcher
-
public class IndexFlushEventDispatcher extends Object
Listens to RequestIndexFlushEvents and routes the flush request to the correctIndexFlushScheduler
- Since:
- 7.9.0
-
-
Constructor Summary
Constructors Constructor Description IndexFlushEventDispatcher(Map<SearchIndex,IndexFlushScheduler> indexFlushSchedulers, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
init()
void
onIndexFlushRequested(ClusterEventWrapper wrapper)
void
onIndexFlushRequested(DefaultIndexFlushRequester.RequestIndexFlushEvent event)
Route flush request to the correctIndexFlushScheduler
-
-
-
Constructor Detail
-
IndexFlushEventDispatcher
public IndexFlushEventDispatcher(Map<SearchIndex,IndexFlushScheduler> indexFlushSchedulers, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar)
-
-
Method Detail
-
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
@EventListener public void onIndexFlushRequested(ClusterEventWrapper wrapper)
-
-