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 Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String,ProcessDefinitionInfoCacheObject> protected CommandExecutor -
Constructor Summary
ConstructorsConstructorDescriptionProcessDefinitionInfoCache(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
Modifier and TypeMethodDescriptionvoidadd(String id, ProcessDefinitionInfoCacheObject obj) voidclear()booleangetAll()voidprotected ProcessDefinitionInfoCacheObjectretrieveProcessDefinitionInfoCacheObject(String processDefinitionId, CommandContext commandContext) intsize()
-
Field Details
-
cache
-
commandExecutor
-
-
Constructor Details
-
ProcessDefinitionInfoCache
Cache with no limit -
ProcessDefinitionInfoCache
Cache which has a hard limit: no more elements will be cached than the limit.
-
-
Method Details
-
get
- Specified by:
getin interfaceDeploymentCache<ProcessDefinitionInfoCacheObject>
-
contains
- Specified by:
containsin interfaceDeploymentCache<ProcessDefinitionInfoCacheObject>
-
add
- Specified by:
addin interfaceDeploymentCache<ProcessDefinitionInfoCacheObject>
-
remove
- Specified by:
removein interfaceDeploymentCache<ProcessDefinitionInfoCacheObject>
-
clear
public void clear()- Specified by:
clearin interfaceDeploymentCache<ProcessDefinitionInfoCacheObject>
-
getAll
- Specified by:
getAllin interfaceDeploymentCache<ProcessDefinitionInfoCacheObject>
-
size
public int size()- Specified by:
sizein interfaceDeploymentCache<ProcessDefinitionInfoCacheObject>
-
retrieveProcessDefinitionInfoCacheObject
protected ProcessDefinitionInfoCacheObject retrieveProcessDefinitionInfoCacheObject(String processDefinitionId, CommandContext commandContext)
-