Class ProcessDefinitionInfoCache
java.lang.Object
org.flowable.engine.impl.persistence.deploy.ProcessDefinitionInfoCache
- All Implemented Interfaces:
- DeploymentCache<ProcessDefinitionInfoCacheObject>
public class ProcessDefinitionInfoCache
extends Object
implements DeploymentCache<ProcessDefinitionInfoCacheObject>
Default cache: keep everything in memory, unless a limit is set.
- Author:
- Tijs Rademakers
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Map<String,ProcessDefinitionInfoCacheObject> protected CommandExecutor
- 
Constructor SummaryConstructorsConstructorDescriptionProcessDefinitionInfoCache(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 SummaryModifier and TypeMethodDescriptionvoidadd(String id, ProcessDefinitionInfoCacheObject obj) voidclear()booleangetAll()voidprotected ProcessDefinitionInfoCacheObjectretrieveProcessDefinitionInfoCacheObject(String processDefinitionId, CommandContext commandContext) intsize()
- 
Field Details- 
cache
- 
commandExecutor
 
- 
- 
Constructor Details- 
ProcessDefinitionInfoCacheCache with no limit
- 
ProcessDefinitionInfoCacheCache which has a hard limit: no more elements will be cached than the limit.
 
- 
- 
Method Details- 
get- Specified by:
- getin interface- DeploymentCache<ProcessDefinitionInfoCacheObject>
 
- 
contains- Specified by:
- containsin interface- DeploymentCache<ProcessDefinitionInfoCacheObject>
 
- 
add- Specified by:
- addin interface- DeploymentCache<ProcessDefinitionInfoCacheObject>
 
- 
remove- Specified by:
- removein interface- DeploymentCache<ProcessDefinitionInfoCacheObject>
 
- 
clearpublic void clear()- Specified by:
- clearin interface- DeploymentCache<ProcessDefinitionInfoCacheObject>
 
- 
getAll- Specified by:
- getAllin interface- DeploymentCache<ProcessDefinitionInfoCacheObject>
 
- 
sizepublic int size()- Specified by:
- sizein interface- DeploymentCache<ProcessDefinitionInfoCacheObject>
 
- 
retrieveProcessDefinitionInfoCacheObjectprotected ProcessDefinitionInfoCacheObject retrieveProcessDefinitionInfoCacheObject(String processDefinitionId, CommandContext commandContext) 
 
-