Class LogCompactor

java.lang.Object
io.atomix.raft.impl.zeebe.LogCompactor

public final class LogCompactor extends Object
  • Constructor Details

  • Method Details

    • executor

      public ThreadContext executor()
    • compact

      public CompletableFuture<Void> compact()
      Assumes our snapshots are being taken asynchronously and we regularly update the compactable index. Compaction is performed asynchronously.
      Returns:
      a future which is completed when the log has been compacted
    • close

      public void close()
    • setCompactableIndex

      public void setCompactableIndex(long index)