use of com.hazelcast.map.impl.querycache.publisher.MapListenerRegistry in project hazelcast by hazelcast.
the class DestroyQueryCacheOperation method deregisterLocalIMapListener.
private void deregisterLocalIMapListener() {
PublisherContext publisherContext = getPublisherContext();
MapListenerRegistry registry = publisherContext.getMapListenerRegistry();
QueryCacheListenerRegistry listenerRegistry = registry.getOrNull(name);
if (listenerRegistry == null) {
return;
}
String listenerId = listenerRegistry.remove(cacheName);
mapService.getMapServiceContext().removeEventListener(name, listenerId);
}
use of com.hazelcast.map.impl.querycache.publisher.MapListenerRegistry in project hazelcast by hazelcast.
the class PublisherCreateOperation method registerLocalIMapListener.
private void registerLocalIMapListener() {
String mapName = info.getMapName();
String cacheName = info.getCacheName();
PublisherContext publisherContext = getPublisherContext();
MapListenerRegistry registry = publisherContext.getMapListenerRegistry();
QueryCacheListenerRegistry listenerRegistry = registry.getOrCreate(mapName);
listenerRegistry.getOrCreate(cacheName);
}
Aggregations