public class ProcessDefinitionInfoCache extends Object implements DeploymentCache<ProcessDefinitionInfoCacheObject>
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,ProcessDefinitionInfoCacheObject> |
cache |
protected CommandExecutor |
commandExecutor |
| Constructor and Description |
|---|
ProcessDefinitionInfoCache(CommandExecutor commandExecutor)
Cache with no limit
|
ProcessDefinitionInfoCache(CommandExecutor commandExecutor,
int limit)
Cache which has a hard limit: no more elements will be cached than the limit.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(String id,
ProcessDefinitionInfoCacheObject obj) |
void |
clear() |
boolean |
contains(String id) |
ProcessDefinitionInfoCacheObject |
get(String processDefinitionId) |
Collection<ProcessDefinitionInfoCacheObject> |
getAll() |
void |
remove(String id) |
protected ProcessDefinitionInfoCacheObject |
retrieveProcessDefinitionInfoCacheObject(String processDefinitionId,
CommandContext commandContext) |
int |
size() |
protected Map<String,ProcessDefinitionInfoCacheObject> cache
protected CommandExecutor commandExecutor
public ProcessDefinitionInfoCache(CommandExecutor commandExecutor)
public ProcessDefinitionInfoCache(CommandExecutor commandExecutor, int limit)
public ProcessDefinitionInfoCacheObject get(String processDefinitionId)
get in interface DeploymentCache<ProcessDefinitionInfoCacheObject>public boolean contains(String id)
contains in interface DeploymentCache<ProcessDefinitionInfoCacheObject>public void add(String id, ProcessDefinitionInfoCacheObject obj)
add in interface DeploymentCache<ProcessDefinitionInfoCacheObject>public void remove(String id)
remove in interface DeploymentCache<ProcessDefinitionInfoCacheObject>public void clear()
clear in interface DeploymentCache<ProcessDefinitionInfoCacheObject>public Collection<ProcessDefinitionInfoCacheObject> getAll()
getAll in interface DeploymentCache<ProcessDefinitionInfoCacheObject>public int size()
size in interface DeploymentCache<ProcessDefinitionInfoCacheObject>protected ProcessDefinitionInfoCacheObject retrieveProcessDefinitionInfoCacheObject(String processDefinitionId, CommandContext commandContext)
Copyright © 2020 Flowable. All rights reserved.