use of com.hazelcast.map.impl.querycache.publisher.PublisherContext 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.PublisherContext in project hazelcast by hazelcast.
the class DestroyQueryCacheOperation method removePublisherAccumulators.
private void removePublisherAccumulators() {
PublisherContext publisherContext = getPublisherContext();
MapPublisherRegistry mapPublisherRegistry = publisherContext.getMapPublisherRegistry();
PublisherRegistry publisherRegistry = mapPublisherRegistry.getOrNull(name);
if (publisherRegistry == null) {
return;
}
publisherRegistry.remove(cacheName);
}
use of com.hazelcast.map.impl.querycache.publisher.PublisherContext in project hazelcast by hazelcast.
the class PublisherCreateOperation method registerPublisherAccumulator.
private void registerPublisherAccumulator() {
String mapName = info.getMapName();
String cacheName = info.getCacheName();
PublisherContext publisherContext = getPublisherContext();
MapPublisherRegistry mapPublisherRegistry = publisherContext.getMapPublisherRegistry();
PublisherRegistry publisherRegistry = mapPublisherRegistry.getOrCreate(mapName);
PartitionAccumulatorRegistry partitionAccumulatorRegistry = publisherRegistry.getOrCreate(cacheName);
partitionAccumulatorRegistry.setUuid(getCallerUuid());
}
use of com.hazelcast.map.impl.querycache.publisher.PublisherContext 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);
}
use of com.hazelcast.map.impl.querycache.publisher.PublisherContext in project hazelcast by hazelcast.
the class PublisherCreateOperation method registerAccumulatorInfo.
private void registerAccumulatorInfo() {
String mapName = info.getMapName();
String cacheName = info.getCacheName();
PublisherContext publisherContext = getPublisherContext();
AccumulatorInfoSupplier infoSupplier = publisherContext.getAccumulatorInfoSupplier();
infoSupplier.putIfAbsent(mapName, cacheName, info);
}
Aggregations