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

public abstract class ResourceDefinitionCache<T extends ResourceDefinitionEntity> extends Object
  • Field Details

  • Constructor Details

    • ResourceDefinitionCache

      public ResourceDefinitionCache(CacheFactory factory, int cacheCapacity, CacheDeployer cacheDeployer)
  • Method Details

    • findDefinitionFromCache

      public T findDefinitionFromCache(String definitionId)
    • findDeployedDefinitionById

      public T findDeployedDefinitionById(String definitionId)
    • findDeployedLatestDefinitionByKey

      public T findDeployedLatestDefinitionByKey(String definitionKey)
      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

      public T findDeployedLatestDefinitionByKeyAndTenantId(String definitionKey, String tenantId)
    • findDeployedDefinitionByKeyVersionAndTenantId

      public T findDeployedDefinitionByKeyVersionAndTenantId(String definitionKey, Integer definitionVersion, String tenantId)
    • findDeployedDefinitionByKeyVersionTagAndTenantId

      public T findDeployedDefinitionByKeyVersionTagAndTenantId(String definitionKey, String definitionVersionTag, String tenantId)
    • findDeployedDefinitionByDeploymentAndKey

      public T findDeployedDefinitionByDeploymentAndKey(String deploymentId, String definitionKey)
    • resolveDefinition

      public T resolveDefinition(T definition)
    • addDefinition

      public void addDefinition(T definition)
    • getDefinition

      public T getDefinition(String id)
    • removeDefinitionFromCache

      public void removeDefinitionFromCache(String id)
    • clear

      public void clear()
    • getCache

      public org.camunda.commons.utils.cache.Cache<String,T> getCache()
    • getManager

      protected abstract AbstractResourceDefinitionManager<T> getManager()
    • checkInvalidDefinitionId

      protected abstract void checkInvalidDefinitionId(String definitionId)
    • checkDefinitionFound

      protected abstract void checkDefinitionFound(String definitionId, T definition)
    • checkInvalidDefinitionByKey

      protected abstract void checkInvalidDefinitionByKey(String definitionKey, T definition)
    • checkInvalidDefinitionByKeyAndTenantId

      protected abstract void checkInvalidDefinitionByKeyAndTenantId(String definitionKey, String tenantId, T definition)
    • checkInvalidDefinitionByKeyVersionAndTenantId

      protected abstract void checkInvalidDefinitionByKeyVersionAndTenantId(String definitionKey, Integer definitionVersion, String tenantId, T definition)
    • checkInvalidDefinitionByKeyVersionTagAndTenantId

      protected abstract void checkInvalidDefinitionByKeyVersionTagAndTenantId(String definitionKey, String definitionVersionTag, String tenantId, T definition)
    • checkInvalidDefinitionByDeploymentAndKey

      protected abstract void checkInvalidDefinitionByDeploymentAndKey(String deploymentId, String definitionKey, T definition)
    • checkInvalidDefinitionWasCached

      protected abstract void checkInvalidDefinitionWasCached(String deploymentId, String definitionId, T definition)