struct Movie::Persistence::ClaimOutbox

Included Modules

Defined in:

movie/persistence/protocol.cr

Constructors

Instance Method Summary

Instance methods inherited from module Movie::Persistence::RetryableConnectionRequest(Array(Movie::Persistence::StoredOutboxEntry))

retryable_after_connection_loss? : Bool retryable_after_connection_loss?

Instance methods inherited from module Movie::Persistence::TypedConnectionRequest(Array(Movie::Persistence::StoredOutboxEntry))

dispatch(worker : ConnectionWorker, sender : Movie::ActorRefBase | Nil) : Nil dispatch, execute(connection : BackendConnection) : T(Movie::Persistence::StoredOutboxEntry) execute, retryable_after_connection_loss? : Bool retryable_after_connection_loss?

Instance methods inherited from module Movie::Persistence::ConnectionRequest

dispatch(worker : ConnectionWorker, sender : Movie::ActorRefBase | Nil) : Nil dispatch

Constructor Detail

def self.for(owner : String, limit : Int32 = 100, lease : Time::Span = 30.seconds, now : Time = Time.utc) : self #

[View source]
def self.new(owner : String, limit : Int32, now_epoch_ms : Int64, lease_until_epoch_ms : Int64) #

[View source]

Instance Method Detail

def execute(connection : BackendConnection) : Array(StoredOutboxEntry) #

[View source]
def lease_until_epoch_ms : Int64 #

[View source]
def limit : Int32 #

[View source]
def now_epoch_ms : Int64 #

[View source]
def owner : String #

[View source]