abstract class Movie::PersistentEntityExtension(SM, S)

Direct Known Subclasses

Defined in:

movie/persistence/behaviors.cr

Constructors

Instance Method Summary

Instance methods inherited from class Movie::Extension

start start, stop stop

Constructor Detail

def self.new(system : AbstractActorSystem, store_ref : Movie::ActorRef(SM), store : S, registry : Movie::ActorRef(Persistence::RegistryMessage), timeout : Time::Span = 5.seconds) #

[View source]

Instance Method Detail

def get_entity_ref(persistence_id : Persistence::EntityId(T), fence : Persistence::ShardLeaseToken | Nil = nil) : ActorRef(T) forall T #

[View source]
def register_entity(entity_type : E.class, message_type : C.class, &factory : Persistence::Id, S -> AbstractBehavior(C)) : Persistence::EntityType(C) forall E, C #

[View source]
def stop #
Description copied from class Movie::Extension

Called when the system is shutting down. Override to cleanup resources (close connections, stop services, etc.)


[View source]