A MergeScheduler that runs each merge using a separate thread, up until a maximum number of threads (MaxThreadCount) at which when a merge is needed, the thread(s) that are updating the index will pause until one or more merges completes. This is a simple way to use concurrency in the indexing process without having to create and manage application level threads.
More...
Inherits Lucene.Net.Index.MergeScheduler.
|
virtual int | MaxThreadCount [get, set] |
| Gets or sets the max # simultaneous threads that may be running. If a merge is necessary yet we already have this many threads running, the incoming thread (that is calling add/updateDocument) will block until a merge thread has completed.
|
|
A MergeScheduler that runs each merge using a separate thread, up until a maximum number of threads (MaxThreadCount) at which when a merge is needed, the thread(s) that are updating the index will pause until one or more merges completes. This is a simple way to use concurrency in the indexing process without having to create and manage application level threads.
Definition at line 35 of file ConcurrentMergeScheduler.cs.
Lucene.Net.Index.ConcurrentMergeScheduler.ConcurrentMergeScheduler |
( |
| ) |
|
static bool Lucene.Net.Index.ConcurrentMergeScheduler.AnyUnhandledExceptions |
( |
| ) |
|
|
static |
virtual void Lucene.Net.Index.ConcurrentMergeScheduler.ClearSuppressExceptions |
( |
| ) |
|
|
virtual |
static void Lucene.Net.Index.ConcurrentMergeScheduler.ClearUnhandledExceptions |
( |
| ) |
|
|
static |
override void Lucene.Net.Index.ConcurrentMergeScheduler.Dispose |
( |
bool |
disposing | ) |
|
|
protectedvirtual |
virtual int Lucene.Net.Index.ConcurrentMergeScheduler.GetMergeThreadPriority |
( |
| ) |
|
|
virtual |
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.
Definition at line 83 of file ConcurrentMergeScheduler.cs.
override void Lucene.Net.Index.ConcurrentMergeScheduler.Merge |
( |
IndexWriter |
writer | ) |
|
|
virtual |
virtual void Lucene.Net.Index.ConcurrentMergeScheduler.SetMergeThreadPriority |
( |
int |
pri | ) |
|
|
virtual |
virtual void Lucene.Net.Index.ConcurrentMergeScheduler.SetSuppressExceptions |
( |
| ) |
|
|
virtual |
static void Lucene.Net.Index.ConcurrentMergeScheduler.SetTestMode |
( |
| ) |
|
|
static |
virtual void Lucene.Net.Index.ConcurrentMergeScheduler.Sync |
( |
| ) |
|
|
virtual |
virtual int Lucene.Net.Index.ConcurrentMergeScheduler.MaxThreadCount |
|
getset |
Gets or sets the max # simultaneous threads that may be running. If a merge is necessary yet we already have this many threads running, the incoming thread (that is calling add/updateDocument) will block until a merge thread has completed.
Definition at line 67 of file ConcurrentMergeScheduler.cs.
The documentation for this class was generated from the following file: