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());
}
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();
}
Aggregations