Package org.apache.lucene.index
Class ConcurrentMergeScheduler.MergeThread
java.lang.Object
java.lang.Thread
org.apache.lucene.index.ConcurrentMergeScheduler.MergeThread
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- ConcurrentMergeScheduler
Runs a merge thread, which may run one or more merges
  in sequence.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.ThreadThread.State, Thread.UncaughtExceptionHandler
- 
Field SummaryFields inherited from class java.lang.ThreadMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
- 
Constructor SummaryConstructorsConstructorDescriptionMergeThread(IndexWriter writer, MergePolicy.OneMerge startMerge) Sole constructor.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the current merge, or null if thisMergeThreadis done.Return the currently running merge.voidrun()voidRecord the currently running merge.voidsetThreadPriority(int pri) Set the priority of this thread.Methods inherited from class java.lang.ThreadactiveCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
- 
Constructor Details- 
MergeThreadSole constructor.
 
- 
- 
Method Details- 
setRunningMergeRecord the currently running merge.
- 
getRunningMergeReturn the currently running merge.
- 
getCurrentMergeReturn the current merge, or null if thisMergeThreadis done.
- 
setThreadPrioritypublic void setThreadPriority(int pri) Set the priority of this thread.
- 
runpublic void run()
 
-