public abstract class IdGenerator
extends java.lang.Object
Constructor and Description |
---|
IdGenerator() |
Modifier and Type | Method and Description |
---|---|
long |
allocate(AmberConnection aConn)
Allocates the next id.
|
abstract long |
allocateGroup(AmberConnection aConn)
Allocates the next group of ids.
|
int |
getGroupSize()
Gets the group size.
|
void |
setGroupSize(int groupSize)
Sets the group size.
|
void |
start()
Starts the generator
|
public int getGroupSize()
public void setGroupSize(int groupSize)
public long allocate(AmberConnection aConn) throws java.sql.SQLException
java.sql.SQLException
public abstract long allocateGroup(AmberConnection aConn) throws java.sql.SQLException
java.sql.SQLException
public void start()