pub struct CheckpointTask { /* private fields */ }Expand description
Background task that periodically rebuilds the OffsetSyncStore from the
target cluster’s offset-syncs topic and then calls run_once.
Implementations§
Source§impl CheckpointTask
impl CheckpointTask
Sourcepub async fn start(
params: CheckpointParams,
interval: Duration,
) -> Result<Self, ReplicatorError>
pub async fn start( params: CheckpointParams, interval: Duration, ) -> Result<Self, ReplicatorError>
Start the checkpoint loop with the given interval.
Each cycle:
- Reads all records from
mm2-offset-syncs.<source>.internalon the TARGET. - Builds a fresh
OffsetSyncStore. - Calls
run_onceto write translated checkpoints.
Errors in any cycle are logged as warnings; the loop continues until shutdown.
§Errors
Returns ReplicatorError only if initial setup fails (currently infallible;
error type is reserved for future validation).
Auto Trait Implementations§
impl Freeze for CheckpointTask
impl RefUnwindSafe for CheckpointTask
impl Send for CheckpointTask
impl Sync for CheckpointTask
impl Unpin for CheckpointTask
impl UnsafeUnpin for CheckpointTask
impl UnwindSafe for CheckpointTask
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more