class

KemalcrStarter::Infrastructure::DB::OutboxEventRepository

Inherits KemalcrStarter::Infrastructure::DB::Repository < Reference < Object

Instance methods

create(event : Core::Events::DomainEvent, connection : ::DB::Connection) : Nil
Source
create(event : Core::Events::DomainEvent) : Nil
Source
find(id : String) : OutboxEventRecord | Nil
Source
increment_retry(event_id : String, error_message : String | Nil, backoff_seconds : Int32 = 0) : Nil
Source
list_dead_letters
Source
mark_dead(event_id : String, error_message : String | Nil, connection : ::DB::Connection) : Nil
Source
mark_dead(event_id : String, error_message : String | Nil) : Nil
Source
mark_dispatched(event_id : String, connection : ::DB::Connection) : Nil
Source
mark_dispatched(event_id : String) : Nil
Source
move_to_dead_letter(event_id : String, failure_reason : String | Nil) : Nil
Source
next_batch(batch_size : Int32 = 50) : Array(OutboxEventRecord)
Source
reclaim_stale_in_progress(stale_threshold_seconds : Int32 = 30) : Int32
Source
requeue_dead_letter(dead_letter_id : String) : Bool
Source

Nested types