pub struct MemorySagaActionStore<C>{ /* private fields */ }Expand description
In-memory durable saga action and timer store.
Implementations§
Trait Implementations§
Source§impl<C> Debug for MemorySagaActionStore<C>
impl<C> Debug for MemorySagaActionStore<C>
Source§impl<C> Default for MemorySagaActionStore<C>
impl<C> Default for MemorySagaActionStore<C>
Source§impl<C> SagaActionStore<C> for MemorySagaActionStore<C>
impl<C> SagaActionStore<C> for MemorySagaActionStore<C>
Source§fn claim_pending(
&self,
claim_id: DeliveryClaimId,
now: SystemTime,
lease_until: SystemTime,
limit: usize,
) -> BoxFuture<'_, SoapResult<Vec<ClaimedSagaAction<C>>>>
fn claim_pending( &self, claim_id: DeliveryClaimId, now: SystemTime, lease_until: SystemTime, limit: usize, ) -> BoxFuture<'_, SoapResult<Vec<ClaimedSagaAction<C>>>>
Claims actions whose schedule is due, using one exclusive worker lease.
Source§fn mark_completed<'a>(
&'a self,
id: &'a SagaActionId,
claim_id: &'a DeliveryClaimId,
completed_at: SystemTime,
) -> BoxFuture<'a, SoapResult<()>>
fn mark_completed<'a>( &'a self, id: &'a SagaActionId, claim_id: &'a DeliveryClaimId, completed_at: SystemTime, ) -> BoxFuture<'a, SoapResult<()>>
Marks a claimed action as successfully handled.
Source§fn mark_failed<'a>(
&'a self,
id: &'a SagaActionId,
claim_id: &'a DeliveryClaimId,
safe_error: &'a str,
failed_at: SystemTime,
available_at: SystemTime,
) -> BoxFuture<'a, SoapResult<()>>
fn mark_failed<'a>( &'a self, id: &'a SagaActionId, claim_id: &'a DeliveryClaimId, safe_error: &'a str, failed_at: SystemTime, available_at: SystemTime, ) -> BoxFuture<'a, SoapResult<()>>
Records a failed attempt and schedules another eligible time.
Source§fn mark_dead_lettered<'a>(
&'a self,
id: &'a SagaActionId,
claim_id: &'a DeliveryClaimId,
safe_error: &'a str,
failed_at: SystemTime,
) -> BoxFuture<'a, SoapResult<()>>
fn mark_dead_lettered<'a>( &'a self, id: &'a SagaActionId, claim_id: &'a DeliveryClaimId, safe_error: &'a str, failed_at: SystemTime, ) -> BoxFuture<'a, SoapResult<()>>
Moves a claimed action to terminal dead-letter state.
Auto Trait Implementations§
impl<C> !Freeze for MemorySagaActionStore<C>
impl<C> RefUnwindSafe for MemorySagaActionStore<C>
impl<C> Send for MemorySagaActionStore<C>
impl<C> Sync for MemorySagaActionStore<C>
impl<C> Unpin for MemorySagaActionStore<C>where
C: Unpin,
impl<C> UnsafeUnpin for MemorySagaActionStore<C>
impl<C> UnwindSafe for MemorySagaActionStore<C>
Blanket Implementations§
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
Mutably borrows from an owned value. Read more