abstract class
Movie::Cluster::ShardedEntityProvider
- Movie::Cluster::ShardedEntityProvider
- Reference
- Object
Direct Known Subclasses
Defined in:
movie/cluster/sharding/provider.crConstructors
Instance Method Summary
-
#activate(entity_id : String, shard_id : Int32) : Bool
Returns true only when this request created a new local entity instance.
- #authorize_shard(shard_id : Int32) : Nil
- #deliver(envelope : ShardingEnvelope, sender : Movie::ActorRefBase | Nil) : Nil
- #handle_cluster_event(event : ClusterEvent) : Nil
- #local_entity_count : Int32
- #message_type_name : String
- #name : String
- #passivate(entity_id : String) : Bool
- #passivate_idle(now : Time::Instant) : Int32
- #passivate_shard(shard_id : Int32) : Nil
- #prepare_shard(shard_id : Int32) : Nil
- #retain_shards(shard_ids : Set(Int32)) : Nil
- #settings : ShardingSettings
- #stop_all : Nil
- #suspend_ownership(release : Bool) : Nil
Constructor Detail
def self.new(name : String, message_type_name : String, settings : ShardingSettings, telemetry : ShardingTelemetry)
#
Instance Method Detail
abstract
def activate(entity_id : String, shard_id : Int32) : Bool
#
Returns true only when this request created a new local entity instance.