public abstract class CompactFutureManager extends Object implements CompactManager
CompactManager
which runs compaction in a separate thread.Modifier and Type | Field and Description |
---|---|
protected Future<CompactResult> |
taskFuture |
Constructor and Description |
---|
CompactFutureManager() |
Modifier and Type | Method and Description |
---|---|
void |
cancelCompaction()
Cancel currently running compaction task.
|
protected Optional<CompactResult> |
innerGetCompactionResult(boolean blocking) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addNewFile, getCompactionResult, shouldWaitCompaction, triggerCompaction
protected Future<CompactResult> taskFuture
public void cancelCompaction()
CompactManager
cancelCompaction
in interface CompactManager
protected final Optional<CompactResult> innerGetCompactionResult(boolean blocking) throws ExecutionException, InterruptedException
Copyright © 2019–2023 The Apache Software Foundation. All rights reserved.