com.atlassian.jira.index
Class MultiThreadedIndexingStrategy

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface com.atlassian.jira.util.Closeable
CLOSE
 
Constructor Summary
MultiThreadedIndexingStrategy(IndexingStrategy strategy, MultiThreadedIndexingConfiguration config, String threadPrefix)
           
 
Method Summary
 void close()
          Closes this stream and releases any system resources associated with it.
 Index.Result get(Supplier<Index.Result> input)
          Resolves an output where an input is given.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiThreadedIndexingStrategy

public MultiThreadedIndexingStrategy(@Nonnull
                                     IndexingStrategy strategy,
                                     MultiThreadedIndexingConfiguration config,
                                     String threadPrefix)
Method Detail

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.