示例#1
0
            public SequenceBatch NextEntries(int size)
            {
                long sequence      = _claimStrategy.IncrementAndGet(size);
                var  sequenceBatch = new SequenceBatch(size, sequence);

                EnsureConsumersAreInRange(sequence);

                return(sequenceBatch);
            }
示例#2
0
 public void Commit(SequenceBatch sequenceBatch)
 {
     Commit(sequenceBatch.End, sequenceBatch.Size);
 }