类 SequentialIdLease
- java.lang.Object
-
- com.mysql.cj.util.SequentialIdLease
-
public class SequentialIdLease extends Object
-
-
构造器概要
构造器 构造器 说明 SequentialIdLease()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intallocateSequentialId()Finds and allocates the first available sequential id.voidreleaseSequentialId(int sequentialId)Frees the given sequential id so that it can be reused.
-
-
-
方法详细资料
-
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
-
-