protected ClusterShardingRememberEntitiesSpec(ClusterShardingRememberEntitiesSpecConfig config)
            : base(config, typeof(ClusterShardingRememberEntitiesSpec))
        {
            _config = config;

            _region = new Lazy <IActorRef>(() => ClusterSharding.Get(Sys).ShardRegion("Entity"));
        }
示例#2
0
        protected ClusterShardingRememberEntitiesSpec(ClusterShardingRememberEntitiesSpecConfig config, Type type) : base(config, type)
        {
            _config           = config;
            _region           = new Lazy <IActorRef>(() => ClusterSharding.Get(Sys).ShardRegion("Entity"));
            _storageLocations = new List <FileInfo>
            {
                new FileInfo(Sys.Settings.Config.GetString("akka.cluster.sharding.distributed-data.durable.lmdb.dir"))
            };

            IsDDataMode = config.Mode == "ddata";
            DeleteStorageLocations();
            EnterBarrier("startup");
        }