public interface CheckpointManager
Checkpoint
to some
implementation-specific location.Modifier and Type | Method and Description |
---|---|
Checkpoint |
readLastCheckpoint(Partition partition)
Returns the last recorded checkpoint for a specified Samza stream partition.
|
void |
register(Partition partition)
Registers this manager to write checkpoints of a specific Samza stream partition.
|
void |
start() |
void |
stop() |
void |
writeCheckpoint(Partition partition,
Checkpoint checkpoint)
Writes a checkpoint based on the current state of a Samza stream partition.
|
void start()
void register(Partition partition)
partition
- Specific Samza stream partition of which to write checkpoints for.void writeCheckpoint(Partition partition, Checkpoint checkpoint)
partition
- Specific Samza stream partition of which to write a checkpoint of.checkpoint
- Reference to a Checkpoint object to store offset data in.Checkpoint readLastCheckpoint(Partition partition)
partition
- Specific Samza stream partition for which to get the last checkpoint of.void stop()