com.atlassian.jira.index
Class MultiThreadedIndexingStrategy
java.lang.Object
com.atlassian.jira.index.MultiThreadedIndexingStrategy
- All Implemented Interfaces:
- IndexingStrategy, com.atlassian.util.concurrent.Function<Supplier<Index.Result>,Index.Result>, Closeable
public class MultiThreadedIndexingStrategy
- extends Object
- implements IndexingStrategy
Wraps another IndexingStrategy
with an Executor
.
- Since:
- v4.0
Fields inherited from interface com.atlassian.jira.util.Closeable |
CLOSE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiThreadedIndexingStrategy
public MultiThreadedIndexingStrategy(@Nonnull
IndexingStrategy strategy,
MultiThreadedIndexingConfiguration config,
String threadPrefix)
get
public Index.Result get(Supplier<Index.Result> input)
- Description copied from interface:
Function
- Resolves an output where an input is given.
- Specified by:
get
in interface com.atlassian.util.concurrent.Function<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.
- Specified by:
close
in interface Closeable
Copyright © 2002-2014 Atlassian. All Rights Reserved.