Beispiel #1
0
        public QueuePollingAtomDocumentActor(IAtomDocumentSettings settings, IAtomDocumentRepository repository)
        {
            _repository          = repository;
            atomDocumentSettings = settings;

            eventQueueOnThisNode = ActorLocations.LocalQueueActor;
        }
        public QueuePollingAtomDocumentActor(IAtomDocumentSettings settings, IAtomDocumentRepository repository)
        {
            _repository = repository;
            atomDocumentSettings = settings;

            eventQueueOnThisNode = ActorLocations.LocalQueueActor;
        }
        public EventSubscribingAtomDocumentActor(IAtomDocumentSettings settings)
        {
            //var decoratedRepository = new CassandraAtomDocumentRepository(new SingletonCassandraSessionFactory(new ClusterConfiguration("cassandra", "cassandra", "192.168.99.100", 32896)));
            var decoratedRepository = new InMemoryAtomDocumentRepository();
            repository = new LoggingAtomDocumentRepositoryDecorator(LoggingAdapter, decoratedRepository);

            atomDocumentSettings = settings;
            Context.System.EventStream.Subscribe(Context.Self, typeof(DomainEvent));
        }
        public EventSubscribingAtomDocumentActor(IAtomDocumentSettings settings)
        {
            //var decoratedRepository = new CassandraAtomDocumentRepository(new SingletonCassandraSessionFactory(new ClusterConfiguration("cassandra", "cassandra", "192.168.99.100", 32896)));
            var decoratedRepository = new InMemoryAtomDocumentRepository();

            repository = new LoggingAtomDocumentRepositoryDecorator(LoggingAdapter, decoratedRepository);

            atomDocumentSettings = settings;
            Context.System.EventStream.Subscribe(Context.Self, typeof(DomainEvent));
        }
        public SubscriptionManager(ActorSystem actorSystem, IAtomDocumentSettings atomDocumentSettings)
        {
            var settings = ClusterShardingSettings.Create(actorSystem);

            var props = Props.Create(() => new SubscriptionActor(atomDocumentSettings));

            var messageExtractor = new LoggingMessageExtractorDecorator(new SubscriptionMessageExtractor(), actorSystem.Log);

            SubscriptionActorRef = ClusterSharding.Get(actorSystem).Start(
                typeName: "SubscriptionActor",
                entityProps: props,
                settings: settings,
                messageExtractor: messageExtractor);
        }
        public SubscriptionManager(ActorSystem actorSystem, IAtomDocumentSettings atomDocumentSettings)
        {
            var settings = ClusterShardingSettings.Create(actorSystem);

            var props = Props.Create(() => new SubscriptionActor(atomDocumentSettings));

            var messageExtractor = new LoggingMessageExtractorDecorator(new SubscriptionMessageExtractor(), actorSystem.Log);

            SubscriptionActorRef = ClusterSharding.Get(actorSystem).Start(
                typeName: "SubscriptionActor",
                entityProps: props,
                settings: settings,
                messageExtractor: messageExtractor);
        }
        public ShardedAtomFeedFactory(ActorSystem actorSystem, IAtomDocumentActorFactory factory, IAtomDocumentSettings atomDocumentSettings)
        {
            this.atomDocumentSettings = atomDocumentSettings;
            this.actorSystem = actorSystem;

            var props = Props.Create(() => new AtomFeedActor(factory, atomDocumentSettings));

            var settings = ClusterShardingSettings.Create(actorSystem);
            ClusterSharding.Get(actorSystem).Start(
                typeName: "AtomFeedActor",
                entityProps: props,
                settings: settings,
                messageExtractor: new AtomFeedShardDataMessageExtractor());
        }
        public ShardedAtomFeedFactory(ActorSystem actorSystem, IAtomDocumentActorFactory factory, IAtomDocumentSettings atomDocumentSettings)
        {
            this.atomDocumentSettings = atomDocumentSettings;
            this.actorSystem          = actorSystem;

            var props = Props.Create(() => new AtomFeedActor(factory, atomDocumentSettings));

            var settings = ClusterShardingSettings.Create(actorSystem);

            ClusterSharding.Get(actorSystem).Start(
                typeName: "AtomFeedActor",
                entityProps: props,
                settings: settings,
                messageExtractor: new AtomFeedShardDataMessageExtractor());
        }
 public AtomFeedActor(IAtomDocumentActorFactory builder, IAtomDocumentSettings settings)
 {
     this.atomDocumentActorFactory = builder;
     this.settings = settings;
 }
Beispiel #10
0
 public AtomFeedActor(IAtomDocumentActorFactory builder, IAtomDocumentSettings settings)
 {
     this.atomDocumentActorFactory = builder;
     this.settings = settings;
 }
 public AtomSubsystemConfiguration(IAtomDocumentSettings atomDocumentSettings)
 {
     documentSettings = atomDocumentSettings;
 }
 public SubscriptionActor(IAtomDocumentSettings settings)
 {
     //atomRepository = new InMemoryAtomDocumentRepository();
     atomDocumentSettings = settings;
     cluster = Cluster.Get(Context.System);
 }
 public SubscriptionActor(IAtomDocumentSettings settings)
 {
     //atomRepository = new InMemoryAtomDocumentRepository();
     atomDocumentSettings = settings;
     cluster = Cluster.Get(Context.System);
 }
Beispiel #14
0
 public AtomSubsystemConfiguration(IAtomDocumentSettings atomDocumentSettings)
 {
     documentSettings = atomDocumentSettings;
 }
 public UnshardedAtomFeedActorRefFactory(IAtomDocumentSettings atomDocumentSettings)
 {
 }
 public UnshardedAtomFeedActorRefFactory(IAtomDocumentSettings atomDocumentSettings)
 {
     
 }