struct Movie::Persistence::AcquireShardLease

Included Modules

Defined in:

movie/persistence/protocol.cr

Constructors

Instance Method Summary

Instance methods inherited from module Movie::Persistence::RetryableConnectionRequest(Movie::Persistence::ShardLeaseToken?)

retryable_after_connection_loss? : Bool retryable_after_connection_loss?

Instance methods inherited from module Movie::Persistence::TypedConnectionRequest(Movie::Persistence::ShardLeaseToken?)

dispatch(worker : ConnectionWorker, sender : Movie::ActorRefBase | Nil) : Nil dispatch, execute(connection : BackendConnection) : T? 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.new(key : ShardLeaseKey, owner : String, lease : Time::Span) #

[View source]

Instance Method Detail

def execute(connection : BackendConnection) : ShardLeaseToken | Nil #

[View source]
def key : ShardLeaseKey #

[View source]
def lease_ms : Int64 #

[View source]
def owner : String #

[View source]