public SequenceBatch NextEntries(int size) { long sequence = _claimStrategy.IncrementAndGet(size); var sequenceBatch = new SequenceBatch(size, sequence); EnsureConsumersAreInRange(sequence); return(sequenceBatch); }
public void Commit(SequenceBatch sequenceBatch) { Commit(sequenceBatch.End, sequenceBatch.Size); }