org.camunda.bpm.engine.impl.db
Class DbIdGenerator

java.lang.Object
  extended by org.camunda.bpm.engine.impl.db.DbIdGenerator
All Implemented Interfaces:
IdGenerator

public class DbIdGenerator
extends Object
implements IdGenerator

Author:
Tom Baeyens

Field Summary
protected  CommandExecutor commandExecutor
           
protected  int idBlockSize
           
protected  long lastId
           
protected  long nextId
           
 
Constructor Summary
DbIdGenerator()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

idBlockSize

protected int idBlockSize

nextId

protected long nextId

lastId

protected long lastId

commandExecutor

protected CommandExecutor commandExecutor
Constructor Detail

DbIdGenerator

public DbIdGenerator()
Method Detail

getNextId

public String getNextId()
Specified by:
getNextId in interface IdGenerator

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.



Copyright © 2017 camunda services GmbH. All rights reserved.