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); } }
public virtual void RecoverClockSuccess(EventLogClock clock) { }
public virtual Task WriteAsync(IEnumerable <DurableEvent> events, long partition, EventLogClock clock) { throw new NotImplementedException(); }
public RecoveredState(EventLogClock clock, DeletionMetadata deleteMetadata) { Clock = clock; DeleteMetadata = deleteMetadata; }