类 SequentialIdLease


  • public class SequentialIdLease
    extends Object
    • 构造器详细资料

      • SequentialIdLease

        public SequentialIdLease()
    • 方法详细资料

      • allocateSequentialId

        public int allocateSequentialId()
        Finds and allocates the first available sequential id.
        返回:
        the next free sequential id.
      • releaseSequentialId

        public void releaseSequentialId​(int sequentialId)
        Frees the given sequential id so that it can be reused.
        参数:
        sequentialId - the sequential id to release