struct Movie::Persistence::RenewShardLease

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(token : ShardLeaseToken, lease : Time::Span) #

[View source]

Instance Method Detail

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

[View source]
def lease_ms : Int64 #

[View source]
def token : ShardLeaseToken #

[View source]