Interface CheckpointSource

All Known Implementing Classes:
CheckpointSourceList, Journal

public interface CheckpointSource
Interface to communicate checkpoint progress.
  • Field Details

  • Method Details

    • newCheckpoint

      Request a new a checkpoint.
      Returns:
      checkpoint.
    • checkpointComplete

      void checkpointComplete(CheckpointSource.Checkpoint checkpoint, boolean compact) throws IOException
      Tell checkpoint source that the checkpoint is completed. If compact is true, the implementation could compact to reduce size of data containing old checkpoints.
      Parameters:
      checkpoint - The checkpoint that has been completed
      compact - Flag to compact old checkpoints.
      Throws:
      IOException