Search in sources :

Example 1 with ClientQueryCacheEndToEndConstructor

use of com.hazelcast.client.impl.querycache.subscriber.ClientQueryCacheEndToEndConstructor 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);
}
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) ClientQueryCacheEndToEndConstructor(com.hazelcast.client.impl.querycache.subscriber.ClientQueryCacheEndToEndConstructor)

Aggregations

ClientQueryCacheEndToEndConstructor (com.hazelcast.client.impl.querycache.subscriber.ClientQueryCacheEndToEndConstructor)1 InternalQueryCache (com.hazelcast.map.impl.querycache.subscriber.InternalQueryCache)1 QueryCacheEndToEndProvider (com.hazelcast.map.impl.querycache.subscriber.QueryCacheEndToEndProvider)1 SubscriberContext (com.hazelcast.map.impl.querycache.subscriber.SubscriberContext)1