private void interceptAndInvalidate(MapServiceContext mapServiceContext, long value, Data tmpKey, String mapName) {
mapServiceContext.interceptAfterRemove(mapName, value);
final NearCacheProvider nearCacheProvider = mapServiceContext.getNearCacheProvider();
if (nearCacheProvider.isNearCacheAndInvalidationEnabled(mapName)) {
nearCacheProvider.invalidateAllNearCaches(mapName, tmpKey);
}
}
public void fireEvent(Data key, Object value, String mapName, MapServiceContext mapServiceContext) {
if (!hasListener(mapName)) {