Class ResourceDefinitionCache<T extends ResourceDefinitionEntity>
java.lang.Object
org.camunda.bpm.engine.impl.persistence.deploy.cache.ResourceDefinitionCache<T>
- Direct Known Subclasses:
CamundaFormDefinitionCache
,CaseDefinitionCache
,DecisionDefinitionCache
,DecisionRequirementsDefinitionCache
,ProcessDefinitionCache
-
Field Summary
-
Constructor Summary
ConstructorDescriptionResourceDefinitionCache
(CacheFactory factory, int cacheCapacity, CacheDeployer cacheDeployer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDefinition
(T definition) protected abstract void
checkDefinitionFound
(String definitionId, T definition) protected abstract void
checkInvalidDefinitionByDeploymentAndKey
(String deploymentId, String definitionKey, T definition) protected abstract void
checkInvalidDefinitionByKey
(String definitionKey, T definition) protected abstract void
checkInvalidDefinitionByKeyAndTenantId
(String definitionKey, String tenantId, T definition) protected abstract void
checkInvalidDefinitionByKeyVersionAndTenantId
(String definitionKey, Integer definitionVersion, String tenantId, T definition) protected abstract void
checkInvalidDefinitionByKeyVersionTagAndTenantId
(String definitionKey, String definitionVersionTag, String tenantId, T definition) protected abstract void
checkInvalidDefinitionId
(String definitionId) protected abstract void
checkInvalidDefinitionWasCached
(String deploymentId, String definitionId, T definition) void
clear()
findDefinitionFromCache
(String definitionId) findDeployedDefinitionByDeploymentAndKey
(String deploymentId, String definitionKey) findDeployedDefinitionById
(String definitionId) findDeployedDefinitionByKeyVersionAndTenantId
(String definitionKey, Integer definitionVersion, String tenantId) findDeployedDefinitionByKeyVersionTagAndTenantId
(String definitionKey, String definitionVersionTag, String tenantId) findDeployedLatestDefinitionByKey
(String definitionKey) findDeployedLatestDefinitionByKeyAndTenantId
(String definitionKey, String tenantId) getCache()
getDefinition
(String id) protected abstract AbstractResourceDefinitionManager<T>
void
resolveDefinition
(T definition)
-
Field Details
-
cache
-
cacheDeployer
-
-
Constructor Details
-
ResourceDefinitionCache
public ResourceDefinitionCache(CacheFactory factory, int cacheCapacity, CacheDeployer cacheDeployer)
-
-
Method Details
-
findDefinitionFromCache
-
findDeployedDefinitionById
-
findDeployedLatestDefinitionByKey
- Returns:
- the latest version of the definition with the given key (from any tenant)
- Throws:
ProcessEngineException
- if more than one tenant has a definition with the given key
-
findDeployedLatestDefinitionByKeyAndTenantId
-
findDeployedDefinitionByKeyVersionAndTenantId
-
findDeployedDefinitionByKeyVersionTagAndTenantId
-
findDeployedDefinitionByDeploymentAndKey
-
resolveDefinition
-
addDefinition
-
getDefinition
-
removeDefinitionFromCache
-
clear
public void clear() -
getCache
-
getManager
-
checkInvalidDefinitionId
-
checkDefinitionFound
-
checkInvalidDefinitionByKey
-
checkInvalidDefinitionByKeyAndTenantId
-
checkInvalidDefinitionByKeyVersionAndTenantId
-
checkInvalidDefinitionByKeyVersionTagAndTenantId
-
checkInvalidDefinitionByDeploymentAndKey
-
checkInvalidDefinitionWasCached
-