pub struct NotificationRegistry { /* private fields */ }Implementations§
Source§impl NotificationRegistry
impl NotificationRegistry
Sourcepub fn poll_needed(
&self,
store: &dyn NotificationPublicationStore,
local_owners: &[[u8; 16]],
control: &StorageReadControl,
) -> StorageBackendResult<bool>
pub fn poll_needed( &self, store: &dyn NotificationPublicationStore, local_owners: &[[u8; 16]], control: &StorageReadControl, ) -> StorageBackendResult<bool>
Observe committed work without taking the registry writer. A racing publication is picked up by the next poll; admission rechecks all state before applying changes.
Sourcepub fn begin_recovered(
&self,
store: &dyn NotificationPublicationStore,
control: &StorageReadControl,
) -> StorageBackendResult<NotificationRegistryTransaction>
pub fn begin_recovered( &self, store: &dyn NotificationPublicationStore, control: &StorageReadControl, ) -> StorageBackendResult<NotificationRegistryTransaction>
Recover any committed slot before admitting another publisher. Each recovery commits its queue acknowledgement before conditionally clearing the main-store slot. A concurrent cleanup or publisher cannot make a stale acknowledgement delete a newer intent.
Source§impl NotificationRegistry
impl NotificationRegistry
Sourcepub fn begin_publishing(
&self,
store: &dyn NotificationPublicationStore,
control: &StorageReadControl,
resume: Option<(&NotificationPublication, [u8; 16])>,
owner_alive: &mut dyn FnMut([u8; 16]) -> StorageBackendResult<bool>,
) -> StorageBackendResult<NotificationRegistryTransaction>
pub fn begin_publishing( &self, store: &dyn NotificationPublicationStore, control: &StorageReadControl, resume: Option<(&NotificationPublication, [u8; 16])>, owner_alive: &mut dyn FnMut([u8; 16]) -> StorageBackendResult<bool>, ) -> StorageBackendResult<NotificationRegistryTransaction>
Publishers wait for the original reserved range; consumers and recovery can continue using ordinary registry transactions. Owner liveness comes from a retained process lease.
Source§impl NotificationRegistry
impl NotificationRegistry
pub fn open( path: &Path, key: Option<&StorageEncryptionKey>, ) -> StorageBackendResult<Self>
pub fn begin(&self) -> StorageBackendResult<NotificationRegistryTransaction>
Sourcepub fn begin_with_control(
&self,
control: &StorageReadControl,
) -> StorageBackendResult<NotificationRegistryTransaction>
pub fn begin_with_control( &self, control: &StorageReadControl, ) -> StorageBackendResult<NotificationRegistryTransaction>
Admit the original registry writer with cancellable pool, native lock and statement waits. Cancellation rolls back unfinished work; it never replays an evaluated statement.