Class ModelInstanceCache<InstanceType extends ModelInstance,DefinitionType extends ResourceDefinitionEntity>
java.lang.Object
org.camunda.bpm.engine.impl.persistence.deploy.cache.ModelInstanceCache<InstanceType,DefinitionType>
- Direct Known Subclasses:
BpmnModelInstanceCache
,CmmnModelInstanceCache
,DmnModelInstanceCache
public abstract class ModelInstanceCache<InstanceType extends ModelInstance,DefinitionType extends ResourceDefinitionEntity>
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected ResourceDefinitionCache<DefinitionType>
protected org.camunda.commons.utils.cache.Cache<String,
InstanceType> protected static final EnginePersistenceLogger
-
Constructor Summary
ConstructorDescriptionModelInstanceCache
(CacheFactory factory, int cacheCapacity, ResourceDefinitionCache<DefinitionType> definitionCache) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
findBpmnModelInstanceForDefinition
(DefinitionType definitionEntity) findBpmnModelInstanceForDefinition
(String definitionId) protected abstract List<? extends ResourceDefinition>
getAllDefinitionsForDeployment
(String deploymentId) org.camunda.commons.utils.cache.Cache<String,
InstanceType> getCache()
protected InstanceType
loadAndCacheBpmnModelInstance
(DefinitionType definitionEntity) protected abstract void
logRemoveEntryFromDeploymentCacheFailure
(String definitionId, Exception e) protected abstract InstanceType
readModelFromStream
(InputStream stream) void
void
removeAllDefinitionsByDeploymentId
(String deploymentId) protected abstract void
throwLoadModelException
(String definitionId, Exception e)
-
Field Details
-
LOG
-
instanceCache
protected org.camunda.commons.utils.cache.Cache<String,InstanceType extends ModelInstance> instanceCache -
definitionCache
-
-
Constructor Details
-
ModelInstanceCache
public ModelInstanceCache(CacheFactory factory, int cacheCapacity, ResourceDefinitionCache<DefinitionType> definitionCache)
-
-
Method Details
-
findBpmnModelInstanceForDefinition
-
findBpmnModelInstanceForDefinition
-
loadAndCacheBpmnModelInstance
-
removeAllDefinitionsByDeploymentId
-
remove
-
clear
public void clear() -
getCache
-
throwLoadModelException
-
logRemoveEntryFromDeploymentCacheFailure
-
readModelFromStream
-
getAllDefinitionsForDeployment
protected abstract List<? extends ResourceDefinition> getAllDefinitionsForDeployment(String deploymentId)
-