Class ConcurrentMergeScheduler.MergeThread

  • All Implemented Interfaces:
    Runnable
    Enclosing class:
    ConcurrentMergeScheduler

    protected class ConcurrentMergeScheduler.MergeThread
    extends Thread
    Runs a merge thread, which may run one or more merges in sequence.
    • Method Detail

      • setRunningMerge

        public void setRunningMerge​(MergePolicy.OneMerge merge)
        Record the currently running merge.
      • getRunningMerge

        public MergePolicy.OneMerge getRunningMerge()
        Return the currently running merge.
      • getCurrentMerge

        public MergePolicy.OneMerge getCurrentMerge()
        Return the current merge, or null if this MergeThread is done.
      • setThreadPriority

        public void setThreadPriority​(int pri)
        Set the priority of this thread.
      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread