Package org.camunda.bpm.engine.impl.db
Class DbIdGenerator
java.lang.Object
org.camunda.bpm.engine.impl.db.DbIdGenerator
- All Implemented Interfaces:
IdGenerator
- Author:
- Tom Baeyens
-
Field Summary
Modifier and TypeFieldDescriptionprotected CommandExecutor
protected int
protected long
protected long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
protected void
void
reset()
Reset inner state so that the generator fetches a new block of IDs from the database when the next ID generation request is received.void
setCommandExecutor
(CommandExecutor commandExecutor) void
setIdBlockSize
(int idBlockSize)
-
Field Details
-
idBlockSize
protected int idBlockSize -
nextId
protected long nextId -
lastId
protected long lastId -
commandExecutor
-
-
Constructor Details
-
DbIdGenerator
public DbIdGenerator()
-
-
Method Details
-
getNextId
- Specified by:
getNextId
in interfaceIdGenerator
-
getNewBlock
protected void getNewBlock() -
getIdBlockSize
public int getIdBlockSize() -
setIdBlockSize
public void setIdBlockSize(int idBlockSize) -
getCommandExecutor
-
setCommandExecutor
-
reset
public void reset()Reset inner state so that the generator fetches a new block of IDs from the database when the next ID generation request is received.
-