public class ProcessDefinitionInfoCache extends Object
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() |
ProcessDefinitionInfoCacheObject |
get(String processDefinitionId) |
void |
remove(String id) |
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)
public void add(String id, ProcessDefinitionInfoCacheObject obj)
public void remove(String id)
public void clear()
public int size()
Copyright © 2016 Alfresco. All rights reserved.