pub struct BarrierAnnouncement {
pub epoch: u64,
pub checkpoint_id: u64,
pub phase: Phase,
pub flags: u64,
pub min_watermark_ms: Option<i64>,
}Expand description
Leader-written barrier announcement.
Fields§
§epoch: u64Monotonic epoch id.
checkpoint_id: u64Coordinator-assigned checkpoint id.
phase: PhasePhase this announcement signals.
flags: u64Reserved for unaligned/other flags.
min_watermark_ms: Option<i64>Cluster-wide minimum watermark at announce time: the min
across every live node’s local watermark, computed by the
leader from follower acks (see BarrierAck.local_watermark_ms)
plus the leader’s own watermark. Populated on
Phase::Commit announcements. None on Prepare/Abort
(computed only after acks are in) and on legacy payloads
deserialised via the #[serde(default)] fallback.
Consumers consult this value instead of their local watermark when deciding whether an event-time window has closed cluster-wide — local progress on one node is stale if another node is still processing earlier events.
Trait Implementations§
Source§impl Clone for BarrierAnnouncement
impl Clone for BarrierAnnouncement
Source§fn clone(&self) -> BarrierAnnouncement
fn clone(&self) -> BarrierAnnouncement
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BarrierAnnouncement
impl Debug for BarrierAnnouncement
Source§impl<'de> Deserialize<'de> for BarrierAnnouncement
impl<'de> Deserialize<'de> for BarrierAnnouncement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for BarrierAnnouncement
impl PartialEq for BarrierAnnouncement
Source§impl Serialize for BarrierAnnouncement
impl Serialize for BarrierAnnouncement
impl Eq for BarrierAnnouncement
impl StructuralPartialEq for BarrierAnnouncement
Auto Trait Implementations§
impl Freeze for BarrierAnnouncement
impl RefUnwindSafe for BarrierAnnouncement
impl Send for BarrierAnnouncement
impl Sync for BarrierAnnouncement
impl Unpin for BarrierAnnouncement
impl UnsafeUnpin for BarrierAnnouncement
impl UnwindSafe for BarrierAnnouncement
Blanket Implementations§
§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> Code for Twhere
T: Serialize + DeserializeOwned,
impl<T> Code for Twhere
T: Serialize + DeserializeOwned,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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