Class DefaultIndexFlushRequester
- java.lang.Object
-
- com.atlassian.confluence.impl.search.DefaultIndexFlushRequester
-
- All Implemented Interfaces:
IndexFlushRequester
public class DefaultIndexFlushRequester extends Object implements IndexFlushRequester
This class is responsible for ensuring that index flush is requested at most once per transaction, and that it will only be scheduled once the transaction has been committed. In case of no transaction the flush is scheduled immediately.- Since:
- 5.9.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultIndexFlushRequester.RequestIndexFlushEvent
-
Nested classes/interfaces inherited from interface com.atlassian.confluence.search.IndexFlushRequester
IndexFlushRequester.Resumer
-
-
Constructor Summary
Constructors Constructor Description DefaultIndexFlushRequester(SynchronizationManager synchronizationManager, com.atlassian.event.api.EventPublisher eventPublisher, SearchIndex searchIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexFlushRequester.Resumer
pause()
void
requestFlush()
void
resume()
-
-
-
Constructor Detail
-
DefaultIndexFlushRequester
public DefaultIndexFlushRequester(SynchronizationManager synchronizationManager, com.atlassian.event.api.EventPublisher eventPublisher, SearchIndex searchIndex)
-
-
Method Detail
-
requestFlush
public void requestFlush()
- Specified by:
requestFlush
in interfaceIndexFlushRequester
-
resume
public void resume()
- Specified by:
resume
in interfaceIndexFlushRequester
-
pause
public IndexFlushRequester.Resumer pause()
- Specified by:
pause
in interfaceIndexFlushRequester
-
-