private static 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 static void fireEvent(Data key, Object value, String mapName, MapServiceContext mapServiceContext) {
final MapEventPublisher mapEventPublisher = mapServiceContext.getMapEventPublisher();