Search in sources :

Example 1 with QueryCacheRequest

use of com.hazelcast.map.impl.querycache.subscriber.QueryCacheRequest in project hazelcast by hazelcast.

the class ClientMapProxy method getQueryCacheInternal.

private QueryCache getQueryCacheInternal(String name, MapListener listener, Predicate predicate, Boolean includeValue, IMap map) {
    QueryCacheContext context = getQueryContext();
    QueryCacheRequest request = newQueryCacheRequest().withUserGivenCacheName(name).withCacheName(UuidUtil.newUnsecureUuidString()).withListener(listener).withPredicate(predicate).withIncludeValue(includeValue).forMap(map).withContext(context);
    return createQueryCache(request);
}
Also used : QueryCacheRequest(com.hazelcast.map.impl.querycache.subscriber.QueryCacheRequest) QueryCacheRequests.newQueryCacheRequest(com.hazelcast.map.impl.querycache.subscriber.QueryCacheRequests.newQueryCacheRequest) QueryCacheContext(com.hazelcast.map.impl.querycache.QueryCacheContext) ClientQueryCacheContext(com.hazelcast.client.impl.querycache.ClientQueryCacheContext)

Example 2 with QueryCacheRequest

use of com.hazelcast.map.impl.querycache.subscriber.QueryCacheRequest in project hazelcast by hazelcast.

the class MapProxyImpl method getQueryCacheInternal.

private QueryCache<K, V> getQueryCacheInternal(@Nonnull String name, @Nullable MapListener listener, @Nullable Predicate<K, V> predicate, @Nullable Boolean includeValue, @Nonnull IMap<K, V> map) {
    QueryCacheContext queryCacheContext = mapServiceContext.getQueryCacheContext();
    QueryCacheRequest request = newQueryCacheRequest().forMap(map).withCacheName(name).withListener(listener).withPredicate(predicate).withIncludeValue(includeValue).withContext(queryCacheContext);
    return createQueryCache(request);
}
Also used : QueryCacheRequest(com.hazelcast.map.impl.querycache.subscriber.QueryCacheRequest) QueryCacheRequest.newQueryCacheRequest(com.hazelcast.map.impl.querycache.subscriber.QueryCacheRequest.newQueryCacheRequest) QueryCacheContext(com.hazelcast.map.impl.querycache.QueryCacheContext)

Aggregations

QueryCacheContext (com.hazelcast.map.impl.querycache.QueryCacheContext)2 QueryCacheRequest (com.hazelcast.map.impl.querycache.subscriber.QueryCacheRequest)2 ClientQueryCacheContext (com.hazelcast.client.impl.querycache.ClientQueryCacheContext)1 QueryCacheRequest.newQueryCacheRequest (com.hazelcast.map.impl.querycache.subscriber.QueryCacheRequest.newQueryCacheRequest)1 QueryCacheRequests.newQueryCacheRequest (com.hazelcast.map.impl.querycache.subscriber.QueryCacheRequests.newQueryCacheRequest)1