pub struct StreamCheckpointConfig {
pub interval_ms: Option<u64>,
pub recent_read_interval_ms: Option<u64>,
pub timeout_ms: Option<u64>,
pub data_dir: Option<PathBuf>,
pub max_node_data_bytes: Option<u64>,
pub sink_epoch_gate_stall_timeout_ms: Option<u64>,
}Expand description
Configuration for streaming checkpoints.
Fields§
§interval_ms: Option<u64>Checkpoint interval in milliseconds. None = manual only.
recent_read_interval_ms: Option<u64>While a recent committed read waits for a newer checkpoint, the next periodic checkpoint
starts this long after the previous one ended instead of interval_ms. Must be shorter
than interval_ms. None = recent reads wait for the periodic cadence.
timeout_ms: Option<u64>One end-to-end attempt deadline in milliseconds, spanning sink fencing, alignment,
capture, durable publication, and completion delivery. None = default (120_000).
data_dir: Option<PathBuf>Directory for persisting checkpoints. None uses the database storage directory, then
falls back to ./data; it never silently selects volatile checkpoint storage.
max_node_data_bytes: Option<u64>Maximum bytes admitted for one participant’s checkpoint node-data object.
None uses DEFAULT_MAX_CHECKPOINT_NODE_DATA_BYTES.
sink_epoch_gate_stall_timeout_ms: Option<u64>A cycle waiting to write into a checkpoint-committable sink fails as a recoverable fault
when the sink’s epoch gate stays in one state this long, in milliseconds. Must exceed
interval_ms plus the checkpoint timeout, so it needs periodic checkpoints. None =
the write waits for as long as the epoch stays closed.
Trait Implementations§
Source§impl Clone for StreamCheckpointConfig
impl Clone for StreamCheckpointConfig
Source§impl Debug for StreamCheckpointConfig
impl Debug for StreamCheckpointConfig
Auto Trait Implementations§
impl Freeze for StreamCheckpointConfig
impl RefUnwindSafe for StreamCheckpointConfig
impl Send for StreamCheckpointConfig
impl Sync for StreamCheckpointConfig
impl Unpin for StreamCheckpointConfig
impl UnsafeUnpin for StreamCheckpointConfig
impl UnwindSafe for StreamCheckpointConfig
Blanket Implementations§
impl<T> Allocation for T
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].