pub struct MemoryOutboxStore<M> { /* private fields */ }Expand description
In-memory outbox with exclusive, expiring worker claims.
Implementations§
Source§impl<M> MemoryOutboxStore<M>
impl<M> MemoryOutboxStore<M>
Trait Implementations§
Source§impl<M: Debug> Debug for MemoryOutboxStore<M>
impl<M: Debug> Debug for MemoryOutboxStore<M>
Source§impl<M> Default for MemoryOutboxStore<M>
impl<M> Default for MemoryOutboxStore<M>
Source§impl<M> OutboxStore<M> for MemoryOutboxStore<M>where
M: IntegrationEvent + Clone,
impl<M> OutboxStore<M> for MemoryOutboxStore<M>where
M: IntegrationEvent + Clone,
Source§fn enqueue(
&self,
messages: Vec<OutboxRecord<M>>,
) -> BoxFuture<'_, SoapResult<()>>
fn enqueue( &self, messages: Vec<OutboxRecord<M>>, ) -> BoxFuture<'_, SoapResult<()>>
Enqueues messages durably.
Source§fn claim_pending(
&self,
claim_id: DeliveryClaimId,
now: SystemTime,
lease_until: SystemTime,
limit: usize,
) -> BoxFuture<'_, SoapResult<Vec<ClaimedOutboxRecord<M>>>>
fn claim_pending( &self, claim_id: DeliveryClaimId, now: SystemTime, lease_until: SystemTime, limit: usize, ) -> BoxFuture<'_, SoapResult<Vec<ClaimedOutboxRecord<M>>>>
Claims pending messages available at
now using an exclusive lease.Source§fn mark_delivered<'a>(
&'a self,
id: &'a MessageId,
claim_id: &'a DeliveryClaimId,
delivered_at: SystemTime,
) -> BoxFuture<'a, SoapResult<()>>
fn mark_delivered<'a>( &'a self, id: &'a MessageId, claim_id: &'a DeliveryClaimId, delivered_at: SystemTime, ) -> BoxFuture<'a, SoapResult<()>>
Marks one claimed message as delivered if the lease identity still owns it.
Source§fn mark_failed<'a>(
&'a self,
id: &'a MessageId,
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 MessageId, claim_id: &'a DeliveryClaimId, safe_error: &'a str, failed_at: SystemTime, available_at: SystemTime, ) -> BoxFuture<'a, SoapResult<()>>
Records a failed delivery and its next eligible attempt.
Source§fn mark_dead_lettered<'a>(
&'a self,
id: &'a MessageId,
claim_id: &'a DeliveryClaimId,
safe_error: &'a str,
failed_at: SystemTime,
) -> BoxFuture<'a, SoapResult<()>>
fn mark_dead_lettered<'a>( &'a self, id: &'a MessageId, claim_id: &'a DeliveryClaimId, safe_error: &'a str, failed_at: SystemTime, ) -> BoxFuture<'a, SoapResult<()>>
Moves a claimed message to terminal dead-letter state.
Auto Trait Implementations§
impl<M> !Freeze for MemoryOutboxStore<M>
impl<M> RefUnwindSafe for MemoryOutboxStore<M>
impl<M> Send for MemoryOutboxStore<M>where
M: Send,
impl<M> Sync for MemoryOutboxStore<M>where
M: Send,
impl<M> Unpin for MemoryOutboxStore<M>where
M: Unpin,
impl<M> UnsafeUnpin for MemoryOutboxStore<M>
impl<M> UnwindSafe for MemoryOutboxStore<M>
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