protected AbstractEventsByPersistenceIdPublisher(string persistenceId, long fromSequenceNr, long toSequenceNr, int maxBufferSize, string writeJournalPluginId)
        {
            PersistenceId        = persistenceId;
            CurrentSequenceNr    = FromSequenceNr = fromSequenceNr;
            ToSequenceNr         = toSequenceNr;
            MaxBufferSize        = maxBufferSize;
            WriteJournalPluginId = writeJournalPluginId;
            Buffer = new DeliveryBuffer <EventEnvelope>(OnNext);

            JournalRef = Persistence.Instance.Apply(Context.System).JournalFor(writeJournalPluginId);
        }
Beispiel #2
0
 public AllPersistenceIdsPublisher(bool liveQuery, string writeJournalPluginId)
 {
     _liveQuery  = liveQuery;
     _buffer     = new DeliveryBuffer <string>(OnNext);
     _journalRef = Persistence.Instance.Apply(Context.System).JournalFor(writeJournalPluginId);
 }
Beispiel #3
0
 public CurrentPersistenceIdsPublisher(string writeJournalPluginId)
 {
     _buffer     = new DeliveryBuffer <string>(OnNext);
     _journalRef = Persistence.Instance.Apply(Context.System).JournalFor(writeJournalPluginId);
 }