Class CompositeIndexFlushRequester
java.lang.Object
com.atlassian.confluence.impl.search.CompositeIndexFlushRequester
- All Implemented Interfaces:
IndexFlushRequester
Allows us to flush an arbitrary number of index queues while exposing only one IndexFlushRequester
Any method calls on instances of this class will invoke that same method on all flushRequesters
passed into the constructor
- Since:
- 7.9.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.confluence.search.IndexFlushRequester
IndexFlushRequester.Resumer
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeIndexFlushRequester
(Collection<IndexFlushRequester> flushRequesters) -
Method Summary
Modifier and TypeMethodDescriptionpause()
void
void
resume()
void
runForAllChildren
(Consumer<IndexFlushRequester> operation) <T> List<T>
runForAllChildren
(Function<IndexFlushRequester, T> operation)
-
Constructor Details
-
CompositeIndexFlushRequester
-
-
Method Details
-
requestFlush
public void requestFlush()- Specified by:
requestFlush
in interfaceIndexFlushRequester
-
resume
public void resume()- Specified by:
resume
in interfaceIndexFlushRequester
-
pause
- Specified by:
pause
in interfaceIndexFlushRequester
-
runForAllChildren
-
runForAllChildren
-