pub struct LambdaStreamRecoveryHandler { /* private fields */ }Expand description
Handler for DynamoDB Stream events on a2a_push_pending_dispatches.
Construct once per Lambda cold start; reuse across invocations. The
handler holds an Arc<PushDispatcher> — the same dispatcher the
request-Lambda builds when push_delivery_store is wired, so you
can share one state bundle across both entry points.
Implementations§
Source§impl LambdaStreamRecoveryHandler
impl LambdaStreamRecoveryHandler
pub fn new(dispatcher: Arc<PushDispatcher>) -> Self
Sourcepub async fn handle_stream_event(
&self,
event: DynamoDbEvent,
) -> DynamoDbEventResponse
pub async fn handle_stream_event( &self, event: DynamoDbEvent, ) -> DynamoDbEventResponse
Handle a batch of DynamoDB Stream records. Returns the
DynamoDbEventResponse with BatchItemFailures populated for
records whose redispatch hit a transient error or whose
NEW_IMAGE could not be parsed. Records with a missing
SequenceNumber are skipped with a log warning — they cannot
be surfaced in BatchItemFailures (the field is required by
the Lambda service to identify the record to retry).
Trait Implementations§
Source§impl Clone for LambdaStreamRecoveryHandler
impl Clone for LambdaStreamRecoveryHandler
Source§fn clone(&self) -> LambdaStreamRecoveryHandler
fn clone(&self) -> LambdaStreamRecoveryHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LambdaStreamRecoveryHandler
impl !RefUnwindSafe for LambdaStreamRecoveryHandler
impl Send for LambdaStreamRecoveryHandler
impl Sync for LambdaStreamRecoveryHandler
impl Unpin for LambdaStreamRecoveryHandler
impl UnsafeUnpin for LambdaStreamRecoveryHandler
impl !UnwindSafe for LambdaStreamRecoveryHandler
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