pub struct CheckpointMetrics { /* private fields */ }Expand description
Checkpointer handles (etl_checkpoint_* and end-to-end latency).
Implementations§
Source§impl CheckpointMetrics
impl CheckpointMetrics
Sourcepub fn new(
labels: &ComponentLabels,
per_partition_detail: bool,
) -> CheckpointMetrics
pub fn new( labels: &ComponentLabels, per_partition_detail: bool, ) -> CheckpointMetrics
Resolve all checkpointer handles.
Sourcepub fn set_pending_max(&self, pending: usize)
pub fn set_pending_max(&self, pending: usize)
Set the max pending-batch count across partitions.
Sourcepub fn set_partition_pending(&self, partition: PartitionId, pending: usize)
pub fn set_partition_pending(&self, partition: PartitionId, pending: usize)
Set one partition’s pending count. No-op unless
per_partition_detail.
Sourcepub fn retain_partitions(&self, keep: &[PartitionId])
pub fn retain_partitions(&self, keep: &[PartitionId])
Drop per-partition series for revoked partitions.
Sourcepub fn set_watermark_age(&self, age: Duration)
pub fn set_watermark_age(&self, age: Duration)
Set the age of the oldest unacknowledged batch.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CheckpointMetrics
impl !RefUnwindSafe for CheckpointMetrics
impl Send for CheckpointMetrics
impl Sync for CheckpointMetrics
impl Unpin for CheckpointMetrics
impl UnsafeUnpin for CheckpointMetrics
impl !UnwindSafe for CheckpointMetrics
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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