Package org.camunda.bpm.engine.impl.db
Class DbIdGenerator
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.DbIdGenerator
-
- All Implemented Interfaces:
IdGenerator
public class DbIdGenerator extends Object implements IdGenerator
- Author:
- Tom Baeyens
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutor
commandExecutor
protected int
idBlockSize
protected long
lastId
protected long
nextId
-
Constructor Summary
Constructors Constructor Description DbIdGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandExecutor
getCommandExecutor()
int
getIdBlockSize()
protected void
getNewBlock()
String
getNextId()
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 Detail
-
idBlockSize
protected int idBlockSize
-
nextId
protected long nextId
-
lastId
protected long lastId
-
commandExecutor
protected CommandExecutor commandExecutor
-
-
Method Detail
-
getNextId
public String getNextId()
- Specified by:
getNextId
in interfaceIdGenerator
-
getNewBlock
protected void getNewBlock()
-
getIdBlockSize
public int getIdBlockSize()
-
setIdBlockSize
public void setIdBlockSize(int idBlockSize)
-
getCommandExecutor
public CommandExecutor getCommandExecutor()
-
setCommandExecutor
public void setCommandExecutor(CommandExecutor commandExecutor)
-
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.
-
-