public SequenceGenerator . SequenceBlock allocateBlock ( int blockSize ) { final long l = this . last ; SequenceGenerator . SequenceBlock block = new SequenceGenerator . SequenceBlock ( l + 1 , l + blockSize ) ; this . last = l + blockSize ; return block ; }
Allocate a block of sequence numbers starting from the last allocated sequence value .