public class MultiSchemaMultiTenantProcessDefinitionCache extends Object implements DeploymentCache<ProcessDefinitionEntity>
Modifier and Type | Field and Description |
---|---|
protected int |
cacheLimit |
protected Map<String,DeploymentCache<ProcessDefinitionEntity>> |
caches |
protected TenantInfoHolder |
tenantInfoHolder |
Constructor and Description |
---|
MultiSchemaMultiTenantProcessDefinitionCache(TenantInfoHolder tenantInfoHolder,
int cacheLimit) |
Modifier and Type | Method and Description |
---|---|
void |
add(String id,
ProcessDefinitionEntity object) |
void |
clear() |
protected DeploymentCache<ProcessDefinitionEntity> |
createTenantDeploymentCache(String currentTenantId) |
ProcessDefinitionEntity |
get(String id) |
protected DeploymentCache<ProcessDefinitionEntity> |
getDeploymentCacheForCurrentTenant() |
void |
remove(String id) |
protected TenantInfoHolder tenantInfoHolder
protected int cacheLimit
protected Map<String,DeploymentCache<ProcessDefinitionEntity>> caches
public MultiSchemaMultiTenantProcessDefinitionCache(TenantInfoHolder tenantInfoHolder, int cacheLimit)
protected DeploymentCache<ProcessDefinitionEntity> getDeploymentCacheForCurrentTenant()
protected DeploymentCache<ProcessDefinitionEntity> createTenantDeploymentCache(String currentTenantId)
public ProcessDefinitionEntity get(String id)
get
in interface DeploymentCache<ProcessDefinitionEntity>
public void add(String id, ProcessDefinitionEntity object)
add
in interface DeploymentCache<ProcessDefinitionEntity>
public void remove(String id)
remove
in interface DeploymentCache<ProcessDefinitionEntity>
public void clear()
clear
in interface DeploymentCache<ProcessDefinitionEntity>
Copyright © 2016 Alfresco. All rights reserved.