Class CompositeIndexFlushRequester
- java.lang.Object
-
- com.atlassian.confluence.impl.search.CompositeIndexFlushRequester
-
- All Implemented Interfaces:
IndexFlushRequester
public class CompositeIndexFlushRequester extends Object implements 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
Constructors Constructor Description CompositeIndexFlushRequester(Collection<IndexFlushRequester> flushRequesters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexFlushRequester.Resumer
pause()
void
requestFlush()
void
resume()
void
runForAllChildren(Consumer<IndexFlushRequester> operation)
<T> List<T>
runForAllChildren(Function<IndexFlushRequester,T> operation)
-
-
-
Constructor Detail
-
CompositeIndexFlushRequester
public CompositeIndexFlushRequester(Collection<IndexFlushRequester> flushRequesters)
-
-
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
-
runForAllChildren
public void runForAllChildren(Consumer<IndexFlushRequester> operation)
-
runForAllChildren
public <T> List<T> runForAllChildren(Function<IndexFlushRequester,T> operation)
-
-