Skip to main content

CheckpointingStrategy

Trait CheckpointingStrategy 

Source
pub trait CheckpointingStrategy: Send {
    // Required method
    fn checkpointing(
        &mut self,
        epoch: usize,
        collector: &EventStoreClient,
    ) -> Vec<CheckpointingAction>;
}
Expand description

Define when checkpoint should be saved and deleted.

Required Methods§

Source

fn checkpointing( &mut self, epoch: usize, collector: &EventStoreClient, ) -> Vec<CheckpointingAction>

Based on the epoch, determine if the checkpoint should be saved.

Trait Implementations§

Source§

impl CheckpointingStrategy for Box<dyn CheckpointingStrategy>

Source§

fn checkpointing( &mut self, epoch: usize, collector: &EventStoreClient, ) -> Vec<CheckpointingAction>

Based on the epoch, determine if the checkpoint should be saved.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl CheckpointingStrategy for Box<dyn CheckpointingStrategy>

Source§

fn checkpointing( &mut self, epoch: usize, collector: &EventStoreClient, ) -> Vec<CheckpointingAction>

Implementors§