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 TypeMethodDescriptionvoid
add
(String id, ProcessDefinitionInfoCacheObject obj) void
clear()
boolean
getAll()
void
protected ProcessDefinitionInfoCacheObject
retrieveProcessDefinitionInfoCacheObject
(String processDefinitionId, CommandContext commandContext) int
size()
-
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:
get
in interfaceDeploymentCache<ProcessDefinitionInfoCacheObject>
-
contains
- Specified by:
contains
in interfaceDeploymentCache<ProcessDefinitionInfoCacheObject>
-
add
- Specified by:
add
in interfaceDeploymentCache<ProcessDefinitionInfoCacheObject>
-
remove
- Specified by:
remove
in interfaceDeploymentCache<ProcessDefinitionInfoCacheObject>
-
clear
public void clear()- Specified by:
clear
in interfaceDeploymentCache<ProcessDefinitionInfoCacheObject>
-
getAll
- Specified by:
getAll
in interfaceDeploymentCache<ProcessDefinitionInfoCacheObject>
-
size
public int size()- Specified by:
size
in interfaceDeploymentCache<ProcessDefinitionInfoCacheObject>
-
retrieveProcessDefinitionInfoCacheObject
protected ProcessDefinitionInfoCacheObject retrieveProcessDefinitionInfoCacheObject(String processDefinitionId, CommandContext commandContext)
-