pub struct NotificationRegistryTransaction { /* private fields */ }Implementations§
Source§impl NotificationRegistryTransaction
impl NotificationRegistryTransaction
Sourcepub fn prepare_publication(
&mut self,
process_id: i32,
pending: &[PendingNotification],
listener: Option<&NotificationListenerRow>,
control: &StorageReadControl,
) -> StorageBackendResult<NotificationPublication>
pub fn prepare_publication( &mut self, process_id: i32, pending: &[PendingNotification], listener: Option<&NotificationListenerRow>, control: &StorageReadControl, ) -> StorageBackendResult<NotificationPublication>
Prepare the original evaluated batch and final subscription under registry admission. The caller stages the returned immutable record in its main transaction before committing either resource.
Sourcepub fn apply_publication(
&mut self,
publication: NotificationPublicationView<'_>,
control: &StorageReadControl,
) -> StorageBackendResult<()>
pub fn apply_publication( &mut self, publication: NotificationPublicationView<'_>, control: &StorageReadControl, ) -> StorageBackendResult<()>
Append exactly the authoritative committed intent, or recognize its already committed acknowledgement. A savepoint prevents failed decoding, cancellation or memory admission from leaving half a publication in this registry transaction.
Source§impl NotificationRegistryTransaction
impl NotificationRegistryTransaction
Sourcepub fn suspend_publication(
&mut self,
publication: &NotificationPublication,
owner: [u8; 16],
) -> StorageBackendResult<()>
pub fn suspend_publication( &mut self, publication: &NotificationPublication, owner: [u8; 16], ) -> StorageBackendResult<()>
Roll back the private queue append and persist only its reservation. The sender keeps the matching publication and liveness lease until its authoritative main outcome is resolved.
Sourcepub fn resume_publication(
&mut self,
publication: &NotificationPublication,
owner: [u8; 16],
control: &StorageReadControl,
) -> StorageBackendResult<bool>
pub fn resume_publication( &mut self, publication: &NotificationPublication, owner: [u8; 16], control: &StorageReadControl, ) -> StorageBackendResult<bool>
Return true when an independent recovery already applied this original main commit. Later publications may have advanced the single acknowledgement since then.