| java.lang.Object org.apache.lucene.index.MergeScheduler org.apache.lucene.index.ConcurrentMergeScheduler
ConcurrentMergeScheduler | public class ConcurrentMergeScheduler extends MergeScheduler (Code) | | A
MergeScheduler that runs each merge using a
separate thread, up until a maximum number of threads
(
ConcurrentMergeScheduler.setMaxThreadCount ) at which points merges are
run in the foreground, serially. This is a simple way
to use concurrency in the indexing process without
having to create and manage application level
threads.
|
anyExceptions | static boolean anyExceptions(Code) | | |
ConcurrentMergeScheduler | public ConcurrentMergeScheduler()(Code) | | |
anyUnhandledExceptions | public static boolean anyUnhandledExceptions()(Code) | | Used for testing
|
clearSuppressExceptions | void clearSuppressExceptions()(Code) | | Used for testing
|
close | public void close()(Code) | | |
getMaxThreadCount | public int getMaxThreadCount()(Code) | | Get the max # simultaneous threads that may be
running. @see #setMaxThreadCount.
|
getMergeThreadPriority | public synchronized int getMergeThreadPriority()(Code) | | Return the priority that merge threads run at. By
default the priority is 1 plus the priority of (ie,
slightly higher priority than) the first thread that
calls merge.
|
setMaxThreadCount | public void setMaxThreadCount(int count)(Code) | | Sets the max # simultaneous threads that may be
running. If a merge is necessary yet we already have
this many threads running, the merge is returned back
to IndexWriter so that it runs in the "foreground".
|
setMergeThreadPriority | public synchronized void setMergeThreadPriority(int pri)(Code) | | Return the priority that merge threads run at.
|
setSuppressExceptions | void setSuppressExceptions()(Code) | | Used for testing
|
setTestMode | public static void setTestMode()(Code) | | |
sync | public synchronized void sync()(Code) | | |
|
|