private void registerEvictionEventToRegionManager(Fqn fqn, EvictionEvent.Type type, int elementDifference, Region region, DataCommand command, Transaction tx) { //we do not trigger eviction events for resident nodes if (dataContainer.isResident(fqn)) { if (trace) log.trace("Ignoring Fqn " + fqn + " as it is marked as resident"); return; } region.registerEvictionEvent(fqn, type, elementDifference, command, tx); if (trace) log.trace("Registering event " + type + " on node " + fqn); }
if (region != null && region.getEvictionRegionConfig() != null) region.registerEvictionEvent(fqn, EvictionEvent.Type.ADD_NODE_EVENT, attrs == null ? 0 : attrs.size(), null, null);