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 Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorsConstructorDescriptionMergeThread
(IndexWriter writer, MergePolicy.OneMerge startMerge) Sole constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturn the current merge, or null if thisMergeThread
is done.Return the currently running merge.void
run()
void
Record the currently running merge.void
setThreadPriority
(int pri) Set the priority of this thread.Methods inherited from class java.lang.Thread
activeCount, 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
-
MergeThread
Sole constructor.
-
-
Method Details
-
setRunningMerge
Record the currently running merge. -
getRunningMerge
Return the currently running merge. -
getCurrentMerge
Return the current merge, or null if thisMergeThread
is done. -
setThreadPriority
public void setThreadPriority(int pri) Set the priority of this thread. -
run
public void run()
-