Search in sources :

Example 1 with NodeQueryCacheEndToEndConstructor

use of com.hazelcast.map.impl.querycache.subscriber.NodeQueryCacheEndToEndConstructor 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);
}
Also used : QueryCacheEndToEndProvider(com.hazelcast.map.impl.querycache.subscriber.QueryCacheEndToEndProvider) InternalQueryCache(com.hazelcast.map.impl.querycache.subscriber.InternalQueryCache) SubscriberContext(com.hazelcast.map.impl.querycache.subscriber.SubscriberContext) NodeQueryCacheEndToEndConstructor(com.hazelcast.map.impl.querycache.subscriber.NodeQueryCacheEndToEndConstructor) QueryCacheContext(com.hazelcast.map.impl.querycache.QueryCacheContext)

Aggregations

QueryCacheContext (com.hazelcast.map.impl.querycache.QueryCacheContext)1 InternalQueryCache (com.hazelcast.map.impl.querycache.subscriber.InternalQueryCache)1 NodeQueryCacheEndToEndConstructor (com.hazelcast.map.impl.querycache.subscriber.NodeQueryCacheEndToEndConstructor)1 QueryCacheEndToEndProvider (com.hazelcast.map.impl.querycache.subscriber.QueryCacheEndToEndProvider)1 SubscriberContext (com.hazelcast.map.impl.querycache.subscriber.SubscriberContext)1