예제 #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);
 }