#1432 - Refactor internals for RemoteTransactionEvent / BeanPersistIds ... to not send inserted ids

This commit is contained in:
rob bygrave
2018-06-17 23:34:27 +12:00
parent bf33b3f96f
commit 085843339f
7 changed files with 61 additions and 122 deletions
@@ -680,6 +680,21 @@ final class BeanDescriptorCacheHelp<T> {
return bean;
}
/**
* Remove a bean from the cache given its Id.
*/
void beanCacheInvalidate(Collection<Object> ids) {
if (beanCache != null) {
if (beanLog.isDebugEnabled()) {
beanLog.debug(" REMOVE {}({})", cacheName, ids);
}
beanCache.removeAll(new HashSet<>(ids));
}
for (BeanPropertyAssocOne<?> imported : propertiesOneImported) {
imported.cacheClear();
}
}
/**
* Remove a bean from the cache given its Id.
*/