public RetryGappedEntries(GappedEntries <T> gappedEntries, int currentRetry, int retries, TimeSpan retryInterval, Func <List <long>, List <IEntry <T> > > gappedReader)
 {
     GappedEntries = gappedEntries;
     _currentRetry = currentRetry;
     _retries      = retries;
     RetryInterval = retryInterval;
     GappedReader  = gappedReader;
 }
 public RetryGappedEntries <T> NextRetry(GappedEntries <T> nextGappedEntries)
 => new RetryGappedEntries <T>(nextGappedEntries, _currentRetry + 1, _retries, RetryInterval, GappedReader);
Ejemplo n.º 3
0
        public void ReadGaps(GappedEntries <T> gappedEntries, int retries, TimeSpan retryInterval, Func <List <long>, List <IEntry <T> > > gappedReader)
        {
            var entries = new RetryGappedEntries <T>(gappedEntries, 1, retries, retryInterval, gappedReader);

            _scheduler.ScheduleOnce(_actor, entries, TimeSpan.Zero, retryInterval);
        }