public class IndexFlushEventDispatcher extends Object
IndexFlushScheduler| Constructor and Description |
|---|
IndexFlushEventDispatcher(Map<SearchIndex,IndexFlushScheduler> indexFlushSchedulers,
com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
init() |
void |
onIndexFlushRequested(ClusterEventWrapper wrapper) |
void |
onIndexFlushRequested(DefaultIndexFlushRequester.RequestIndexFlushEvent event)
Route flush request to the correct
IndexFlushScheduler |
public IndexFlushEventDispatcher(Map<SearchIndex,IndexFlushScheduler> indexFlushSchedulers, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar)
@PostConstruct public void init()
@PreDestroy public void destroy()
@EventListener public void onIndexFlushRequested(DefaultIndexFlushRequester.RequestIndexFlushEvent event)
IndexFlushSchedulerIllegalArgumentException - if the requested SearchIndex
is not supported@EventListener public void onIndexFlushRequested(ClusterEventWrapper wrapper)
Copyright © 2003–2022 Atlassian. All rights reserved.