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
FieldsModifier and TypeFieldDescriptionprotected CommandExecutorprotected intprotected longprotected long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected voidvoidreset()Reset inner state so that the generator fetches a new block of IDs from the database when the next ID generation request is received.voidsetCommandExecutor(CommandExecutor commandExecutor) voidsetIdBlockSize(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:
getNextIdin 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.
-