Class AtomixLogCompactor
- java.lang.Object
-
- io.camunda.zeebe.broker.logstreams.AtomixLogCompactor
-
- All Implemented Interfaces:
LogCompactor
public final class AtomixLogCompactor extends Object implements LogCompactor
-
-
Constructor Summary
Constructors Constructor Description AtomixLogCompactor(RaftPartitionServer partitionServer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Void>compactLog(long compactionBound)Sets the compactable index on the Atomix side and triggers compaction.
-
-
-
Constructor Detail
-
AtomixLogCompactor
public AtomixLogCompactor(RaftPartitionServer partitionServer)
-
-
Method Detail
-
compactLog
public CompletableFuture<Void> compactLog(long compactionBound)
Sets the compactable index on the Atomix side and triggers compaction. On failure will log the error but will return a "successful" future - arguable if this is desired behavior.- Specified by:
compactLogin interfaceLogCompactor- Parameters:
compactionBound- the upper index compaction bound- Returns:
- a future which is completed after compaction is finished
-
-