public MessageReplayerRepository(IPersistenceConfiguration persistenceConfiguration, IStorage storage, IBus bus, ITransport transport,
                                  IInMemoryMessageMatcher inMemoryMessageMatcher, IReporter speedReporter)
 {
     _persistenceConfiguration = persistenceConfiguration;
     _storage   = storage;
     _bus       = bus;
     _transport = transport;
     _inMemoryMessageMatcher = inMemoryMessageMatcher;
     _speedReporter          = speedReporter;
 }
示例#2
0
        public MessageReplayer(IPersistenceConfiguration persistenceConfiguration, IStorage storage, IBus bus, ITransport transport,
                               IInMemoryMessageMatcher inMemoryMessageMatcher, Peer peer, Guid replayId, IReporter reporter)
        {
            _persistenceConfiguration = persistenceConfiguration;
            _storage   = storage;
            _bus       = bus;
            _transport = transport;
            _inMemoryMessageMatcher = inMemoryMessageMatcher;
            _self            = new Peer(transport.PeerId, transport.InboundEndPoint);
            _peer            = peer;
            _replayId        = replayId;
            _reporter        = reporter;
            _replayBatchSize = _persistenceConfiguration.ReplayBatchSize;

            UnackedMessageCountThatReleasesNextBatch = _persistenceConfiguration.ReplayUnackedMessageCountThatReleasesNextBatch;
        }
示例#3
0
 public InMemoryMessageMatcherInitializer(IStorage storage, IInMemoryMessageMatcher persister)
 {
     _storage   = storage;
     _persister = persister;
 }
 public PersistMessageCommandHandler(IMessageReplayerRepository messageReplayerRepository, IInMemoryMessageMatcher inMemoryMessageMatcher, IPersistenceConfiguration configuration)
 {
     _messageReplayerRepository = messageReplayerRepository;
     _inMemoryMessageMatcher    = inMemoryMessageMatcher;
     _configuration             = configuration;
 }