Package org.apache.bookkeeper.bookie
Interface CheckpointSource
- All Known Implementing Classes:
CheckpointSourceList,Journal
public interface CheckpointSource
Interface to communicate checkpoint progress.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA checkpoint presented a time point. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckpointComplete(CheckpointSource.Checkpoint checkpoint, boolean compact) Tell checkpoint source that the checkpoint is completed.Request a new a checkpoint.
-
Field Details
-
DEFAULT
-
-
Method Details
-
newCheckpoint
CheckpointSource.Checkpoint newCheckpoint()Request a new a checkpoint.- Returns:
- checkpoint.
-
checkpointComplete
Tell checkpoint source that the checkpoint is completed. Ifcompactis true, the implementation could compact to reduce size of data containing old checkpoints.- Parameters:
checkpoint- The checkpoint that has been completedcompact- Flag to compact old checkpoints.- Throws:
IOException
-