Class ProcessDefinitionInfoCache
- java.lang.Object
-
- org.activiti.engine.impl.persistence.deploy.ProcessDefinitionInfoCache
-
public class ProcessDefinitionInfoCache extends Object
Default cache: keep everything in memory, unless a limit is set.
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,ProcessDefinitionInfoCacheObject>cacheprotected CommandExecutorcommandExecutor
-
Constructor Summary
Constructors Constructor Description ProcessDefinitionInfoCache(CommandExecutor commandExecutor)Cache with no limitProcessDefinitionInfoCache(CommandExecutor commandExecutor, int limit)Cache which has a hard limit: no more elements will be cached than the limit.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String id, ProcessDefinitionInfoCacheObject obj)voidclear()ProcessDefinitionInfoCacheObjectget(String processDefinitionId)voidremove(String id)protected ProcessDefinitionInfoCacheObjectretrieveProcessDefinitionInfoCacheObject(String processDefinitionId, CommandContext commandContext)intsize()
-
-
-
Field Detail
-
cache
protected Map<String,ProcessDefinitionInfoCacheObject> cache
-
commandExecutor
protected CommandExecutor commandExecutor
-
-
Constructor Detail
-
ProcessDefinitionInfoCache
public ProcessDefinitionInfoCache(CommandExecutor commandExecutor)
Cache with no limit
-
ProcessDefinitionInfoCache
public ProcessDefinitionInfoCache(CommandExecutor commandExecutor, int limit)
Cache which has a hard limit: no more elements will be cached than the limit.
-
-
Method Detail
-
get
public ProcessDefinitionInfoCacheObject get(String processDefinitionId)
-
add
public void add(String id, ProcessDefinitionInfoCacheObject obj)
-
remove
public void remove(String id)
-
clear
public void clear()
-
size
public int size()
-
retrieveProcessDefinitionInfoCacheObject
protected ProcessDefinitionInfoCacheObject retrieveProcessDefinitionInfoCacheObject(String processDefinitionId, CommandContext commandContext)
-
-