Search in sources :

Example 1 with CachedDbEntity

use of org.camunda.bpm.engine.impl.db.entitymanager.cache.CachedDbEntity in project camunda-bpm-platform by camunda.

the class DbEntityManager method flushEntityCache.

/**
 * Flushes the entity cache:
 * Depending on the entity state, the required {@link DbOperation} is performed and the cache is updated.
 */
protected void flushEntityCache() {
    List<CachedDbEntity> cachedEntities = dbEntityCache.getCachedEntities();
    for (CachedDbEntity cachedDbEntity : cachedEntities) {
        flushCachedEntity(cachedDbEntity);
    }
    // log cache state after flush
    LOG.flushedCacheState(dbEntityCache.getCachedEntities());
}
Also used : CachedDbEntity(org.camunda.bpm.engine.impl.db.entitymanager.cache.CachedDbEntity)

Example 2 with CachedDbEntity

use of org.camunda.bpm.engine.impl.db.entitymanager.cache.CachedDbEntity in project camunda-bpm-platform by camunda.

the class DbEntityManager method flushEntity.

public void flushEntity(DbEntity entity) {
    CachedDbEntity cachedEntity = dbEntityCache.getCachedEntity(entity);
    if (cachedEntity != null) {
        flushCachedEntity(cachedEntity);
    }
    flushDbOperationManager();
}
Also used : CachedDbEntity(org.camunda.bpm.engine.impl.db.entitymanager.cache.CachedDbEntity)

Aggregations

CachedDbEntity (org.camunda.bpm.engine.impl.db.entitymanager.cache.CachedDbEntity)2