Example #1
0
 protected PersistentView()
 {
     LastSequenceNr = 0L;
     Extension      = Persistence.Instance.Apply(Context.System);
     _viewSettings  = Extension.Settings.View;
     _internalStash = CreateStash();
     _currentState  = RecoveryPending();
 }
 protected PersistentView()
 {
     LastSequenceNr = 0L;
     Extension      = Persistence.Instance.Apply(Context.System);
     _viewSettings  = Extension.Settings.View;
     _internalStash = CreateStash();
     _currentState  = RecoveryStarted(long.MaxValue);
     _log           = Context.GetLogger();
 }
Example #3
0
        protected Eventsourced()
        {
            LastSequenceNr = 0L;

            Extension            = Persistence.Instance.Apply(Context.System);
            _instanceId          = InstanceCounter.GetAndIncrement();
            _maxMessageBatchSize = Extension.Settings.Journal.MaxMessageBatchSize;
            _currentState        = RecoveryPending();
            _internalStash       = CreateStash();
        }
Example #4
0
        protected Eventsourced()
        {
            LastSequenceNr     = 0L;
            _isWriteInProgress = false;
            _sequenceNr        = 0L;

            Extension      = Persistence.Instance.Apply(Context.System);
            _instanceId    = InstanceCounter.GetAndIncrement();
            _writerGuid    = Guid.NewGuid().ToString();
            _currentState  = null;
            _internalStash = CreateStash();
            _log           = Context.GetLogger();
        }