Top Fields Constructors Methods
com.mysql.cj.util

public Class SequentialIdLease

extends Object
Class Inheritance
Imports
java.util.Iterator, .Set, .TreeSet

Field Summary

Modifier and TypeField and Description
private Set<Integer>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the next free sequential id.
allocateSequentialId
()

Finds and allocates the first available sequential id.

public void
releaseSequentialId(int
the sequential id to release
sequentialId
)

Frees the given sequential id so that it can be reused.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

sequentialIdsLeaseback to summary
private Set<Integer> sequentialIdsLease

Constructor Detail

SequentialIdLeaseback to summary
public SequentialIdLease()

Method Detail

allocateSequentialIdback to summary
public int allocateSequentialId()

Finds and allocates the first available sequential id.

Returns:int

the next free sequential id.

releaseSequentialIdback to summary
public void releaseSequentialId(int sequentialId)

Frees the given sequential id so that it can be reused.

Parameters
sequentialId:int

the sequential id to release