use of com.hazelcast.map.impl.querycache.subscriber.SubscriberContext in project hazelcast by hazelcast.
the class MapProxyImpl method createQueryCache.
private QueryCache<K, V> createQueryCache(QueryCacheRequest request) {
ConstructorFunction<String, InternalQueryCache> constructorFunction = new NodeQueryCacheEndToEndConstructor(request);
QueryCacheContext queryCacheContext = request.getContext();
SubscriberContext subscriberContext = queryCacheContext.getSubscriberContext();
QueryCacheEndToEndProvider queryCacheEndToEndProvider = subscriberContext.getEndToEndQueryCacheProvider();
return queryCacheEndToEndProvider.getOrCreateQueryCache(request.getMapName(), request.getUserGivenCacheName(), constructorFunction);
}
use of com.hazelcast.map.impl.querycache.subscriber.SubscriberContext in project hazelcast by hazelcast.
the class ClientMapProxy method createQueryCache.
private QueryCache createQueryCache(QueryCacheRequest request) {
ConstructorFunction<String, InternalQueryCache> constructorFunction = new ClientQueryCacheEndToEndConstructor(request);
SubscriberContext subscriberContext = getQueryContext().getSubscriberContext();
QueryCacheEndToEndProvider queryCacheEndToEndProvider = subscriberContext.getEndToEndQueryCacheProvider();
return queryCacheEndToEndProvider.getOrCreateQueryCache(request.getMapName(), request.getUserGivenCacheName(), constructorFunction);
}
Aggregations