Package com.atlassian.jira.index
Class MultiThreadedIndexingStrategy
java.lang.Object
com.atlassian.jira.index.MultiThreadedIndexingStrategy
- All Implemented Interfaces:
IndexingStrategy
,Closeable
,Function<Supplier<Index.Result>,
,Index.Result> Closeable
,AutoCloseable
,Function<Supplier<Index.Result>,
Index.Result>
Wraps another
IndexingStrategy
with an Executor
.- Since:
- v4.0
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMultiThreadedIndexingStrategy
(IndexingStrategy strategy, MultiThreadedIndexingConfiguration config, String threadPrefix) -
Method Summary
Modifier and TypeMethodDescriptionapply
(Supplier<Index.Result> input) Resolves an outputwhere an input is given. void
close()
Closes this stream and releases any system resources associated with it.
-
Constructor Details
-
MultiThreadedIndexingStrategy
public MultiThreadedIndexingStrategy(@Nonnull IndexingStrategy strategy, MultiThreadedIndexingConfiguration config, String threadPrefix)
-
-
Method Details
-
apply
Description copied from interface:Function
Resolves an outputwhere an input is given. - Specified by:
apply
in interfaceFunction<Supplier<Index.Result>,
Index.Result> - Specified by:
apply
in interfaceFunction<Supplier<Index.Result>,
Index.Result> - Parameters:
input
- an object of type D.- Returns:
- the output of type R.
-
close
public void close()Description copied from interface:Closeable
Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.
-