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.
|
boolean |
compactNotCompleted()
Check if a compaction is in progress, or if a compaction result remains to be fetched, or if
a compaction should be triggered later.
|
protected Optional<CompactResult> |
innerGetCompactionResult(boolean blocking) |
protected CompactResult |
obtainCompactResult() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddNewFile, allFiles, getCompactionResult, shouldWaitForLatestCompaction, shouldWaitForPreparingCheckpoint, triggerCompactionprotected Future<CompactResult> taskFuture
public void cancelCompaction()
CompactManagercancelCompaction in interface CompactManagerpublic boolean compactNotCompleted()
CompactManagercompactNotCompleted in interface CompactManagerprotected final Optional<CompactResult> innerGetCompactionResult(boolean blocking) throws ExecutionException, InterruptedException
@VisibleForTesting protected CompactResult obtainCompactResult() throws InterruptedException, ExecutionException
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.