示例#1
0
        private EventLogClock AdjustSequenceNr(long batchSize, long maxBatchSize, EventLogClock clock, out long currentPartition)
        {
            Contract.Requires(batchSize <= maxBatchSize);

            currentPartition = PartitionOf(clock.SequenceNr, maxBatchSize);
            var remainingSize = RemainingPartitionSize(clock.SequenceNr, maxBatchSize);

            if (remainingSize < batchSize)
            {
                currentPartition += 1L;
                return(clock.AdvanceSequenceNr(remainingSize));
            }
            else
            {
                return(clock);
            }
        }
示例#2
0
 public virtual void RecoverClockSuccess(EventLogClock clock)
 {
 }
示例#3
0
 public virtual Task WriteAsync(IEnumerable <DurableEvent> events, long partition, EventLogClock clock)
 {
     throw new NotImplementedException();
 }
示例#4
0
 public RecoveredState(EventLogClock clock, DeletionMetadata deleteMetadata)
 {
     Clock          = clock;
     DeleteMetadata = deleteMetadata;
 }